Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: webrtc/base/sslstreamadapterhelper.h

Issue 1313233005: purge nss files and dependencies (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_ 11 #ifndef WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_
12 #define WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_ 12 #define WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/buffer.h" 17 #include "webrtc/base/buffer.h"
18 #include "webrtc/base/stream.h" 18 #include "webrtc/base/stream.h"
19 #include "webrtc/base/sslidentity.h" 19 #include "webrtc/base/sslidentity.h"
20 #include "webrtc/base/sslstreamadapter.h" 20 #include "webrtc/base/sslstreamadapter.h"
21 21
22 namespace rtc { 22 namespace rtc {
23 23
24 // SSLStreamAdapterHelper : A stream adapter which implements much 24 // SSLStreamAdapterHelper : A stream adapter which implements much
25 // of the logic that is common between the known implementations 25 // of the logic that is common between the known implementations
26 // (NSS and OpenSSL) 26 // (OpenSSL and previously NSS)
27 class SSLStreamAdapterHelper : public SSLStreamAdapter { 27 class SSLStreamAdapterHelper : public SSLStreamAdapter {
28 public: 28 public:
29 explicit SSLStreamAdapterHelper(StreamInterface* stream); 29 explicit SSLStreamAdapterHelper(StreamInterface* stream);
30 ~SSLStreamAdapterHelper() override; 30 ~SSLStreamAdapterHelper() override;
31 31
32 // Overrides of SSLStreamAdapter 32 // Overrides of SSLStreamAdapter
33 void SetIdentity(SSLIdentity* identity) override; 33 void SetIdentity(SSLIdentity* identity) override;
34 void SetServerRole(SSLRole role = SSL_SERVER) override; 34 void SetServerRole(SSLRole role = SSL_SERVER) override;
35 void SetMode(SSLMode mode) override; 35 void SetMode(SSLMode mode) override;
36 void SetMaxProtocolVersion(SSLProtocolVersion version) override; 36 void SetMaxProtocolVersion(SSLProtocolVersion version) override;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 private: 108 private:
109 // Go from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT, 109 // Go from state SSL_NONE to either SSL_CONNECTING or SSL_WAIT,
110 // depending on whether the underlying stream is already open or 110 // depending on whether the underlying stream is already open or
111 // not. Returns 0 on success and a negative value on error. 111 // not. Returns 0 on success and a negative value on error.
112 int StartSSL(); 112 int StartSSL();
113 }; 113 };
114 114
115 } // namespace rtc 115 } // namespace rtc
116 116
117 #endif // WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_ 117 #endif // WEBRTC_BASE_SSLSTREAMADAPTERHELPER_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter_unittest.cc ('k') | webrtc/build/sanitizers/lsan_suppressions_webrtc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698