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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 #ifndef OPENSSL_IS_BORINGSSL | 90 #ifndef OPENSSL_IS_BORINGSSL |
91 // Return the RFC (5246, 3268, etc.) cipher name for an OpenSSL cipher. | 91 // Return the RFC (5246, 3268, etc.) cipher name for an OpenSSL cipher. |
92 static const char* GetRfcSslCipherName(const SSL_CIPHER* cipher); | 92 static const char* GetRfcSslCipherName(const SSL_CIPHER* cipher); |
93 #endif | 93 #endif |
94 | 94 |
95 bool GetSslCipher(std::string* cipher) override; | 95 bool GetSslCipher(std::string* cipher) override; |
96 | 96 |
97 // Key Extractor interface | 97 // Key Extractor interface |
98 bool ExportKeyingMaterial(const std::string& label, | 98 bool ExportKeyingMaterial(const std::string& label, |
99 const uint8* context, | 99 const uint8_t* context, |
100 size_t context_len, | 100 size_t context_len, |
101 bool use_context, | 101 bool use_context, |
102 uint8* result, | 102 uint8_t* result, |
103 size_t result_len) override; | 103 size_t result_len) override; |
104 | 104 |
105 // DTLS-SRTP interface | 105 // DTLS-SRTP interface |
106 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; | 106 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; |
107 bool GetDtlsSrtpCipher(std::string* cipher) override; | 107 bool GetDtlsSrtpCipher(std::string* cipher) override; |
108 | 108 |
109 // Capabilities interfaces | 109 // Capabilities interfaces |
110 static bool HaveDtls(); | 110 static bool HaveDtls(); |
111 static bool HaveDtlsSrtp(); | 111 static bool HaveDtlsSrtp(); |
112 static bool HaveExporter(); | 112 static bool HaveExporter(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 // Max. allowed protocol version | 207 // Max. allowed protocol version |
208 SSLProtocolVersion ssl_max_version_; | 208 SSLProtocolVersion ssl_max_version_; |
209 }; | 209 }; |
210 | 210 |
211 ///////////////////////////////////////////////////////////////////////////// | 211 ///////////////////////////////////////////////////////////////////////////// |
212 | 212 |
213 } // namespace rtc | 213 } // namespace rtc |
214 | 214 |
215 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ | 215 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ |
OLD | NEW |