| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 size_t result_len) override; | 77 size_t result_len) override; |
| 78 | 78 |
| 79 // DTLS-SRTP interface | 79 // DTLS-SRTP interface |
| 80 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; | 80 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; |
| 81 bool GetDtlsSrtpCipher(std::string* cipher) override; | 81 bool GetDtlsSrtpCipher(std::string* cipher) override; |
| 82 | 82 |
| 83 // Capabilities interfaces | 83 // Capabilities interfaces |
| 84 static bool HaveDtls(); | 84 static bool HaveDtls(); |
| 85 static bool HaveDtlsSrtp(); | 85 static bool HaveDtlsSrtp(); |
| 86 static bool HaveExporter(); | 86 static bool HaveExporter(); |
| 87 static std::string GetDefaultSslCipher(SSLProtocolVersion version); | 87 static std::string GetDefaultSslCipher(SSLProtocolVersion version, |
| 88 KeyType key_type); |
| 88 | 89 |
| 89 protected: | 90 protected: |
| 90 // Override SSLStreamAdapter | 91 // Override SSLStreamAdapter |
| 91 void OnEvent(StreamInterface* stream, int events, int err) override; | 92 void OnEvent(StreamInterface* stream, int events, int err) override; |
| 92 | 93 |
| 93 // Override SSLStreamAdapterHelper | 94 // Override SSLStreamAdapterHelper |
| 94 int BeginSSL() override; | 95 int BeginSSL() override; |
| 95 void Cleanup() override; | 96 void Cleanup() override; |
| 96 bool GetDigestLength(const std::string& algorithm, size_t* length) override; | 97 bool GetDigestLength(const std::string& algorithm, size_t* length) override; |
| 97 | 98 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 108 static bool initialized; // Was InitializeSSL() called? | 109 static bool initialized; // Was InitializeSSL() called? |
| 109 bool cert_ok_; // Did we get and check a cert | 110 bool cert_ok_; // Did we get and check a cert |
| 110 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list | 111 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list |
| 111 | 112 |
| 112 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity | 113 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace rtc | 116 } // namespace rtc |
| 116 | 117 |
| 117 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_ | 118 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_ |
| OLD | NEW |