OLD | NEW |
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 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 size_t result_len) override; | 84 size_t result_len) override; |
85 | 85 |
86 // DTLS-SRTP interface | 86 // DTLS-SRTP interface |
87 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; | 87 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; |
88 bool GetDtlsSrtpCipher(std::string* cipher) override; | 88 bool GetDtlsSrtpCipher(std::string* cipher) override; |
89 | 89 |
90 // Capabilities interfaces | 90 // Capabilities interfaces |
91 static bool HaveDtls(); | 91 static bool HaveDtls(); |
92 static bool HaveDtlsSrtp(); | 92 static bool HaveDtlsSrtp(); |
93 static bool HaveExporter(); | 93 static bool HaveExporter(); |
94 static std::string GetDefaultSslCipher(SSLProtocolVersion version); | 94 static std::string GetDefaultSslCipher(SSLProtocolVersion version, |
| 95 KeyType key_type); |
95 | 96 |
96 protected: | 97 protected: |
97 // Override SSLStreamAdapter | 98 // Override SSLStreamAdapter |
98 void OnEvent(StreamInterface* stream, int events, int err) override; | 99 void OnEvent(StreamInterface* stream, int events, int err) override; |
99 | 100 |
100 // Override SSLStreamAdapterHelper | 101 // Override SSLStreamAdapterHelper |
101 int BeginSSL() override; | 102 int BeginSSL() override; |
102 void Cleanup() override; | 103 void Cleanup() override; |
103 bool GetDigestLength(const std::string& algorithm, size_t* length) override; | 104 bool GetDigestLength(const std::string& algorithm, size_t* length) override; |
104 | 105 |
(...skipping 10 matching lines...) Expand all Loading... |
115 static bool initialized; // Was InitializeSSL() called? | 116 static bool initialized; // Was InitializeSSL() called? |
116 bool cert_ok_; // Did we get and check a cert | 117 bool cert_ok_; // Did we get and check a cert |
117 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list | 118 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list |
118 | 119 |
119 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity | 120 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity |
120 }; | 121 }; |
121 | 122 |
122 } // namespace rtc | 123 } // namespace rtc |
123 | 124 |
124 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_ | 125 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_ |
OLD | NEW |