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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 size_t* read, | 81 size_t* read, |
82 int* error) override; | 82 int* error) override; |
83 StreamResult Write(const void* data, | 83 StreamResult Write(const void* data, |
84 size_t data_len, | 84 size_t data_len, |
85 size_t* written, | 85 size_t* written, |
86 int* error) override; | 86 int* error) override; |
87 void Close() override; | 87 void Close() override; |
88 StreamState GetState() const override; | 88 StreamState GetState() const override; |
89 | 89 |
90 // TODO(guoweis): Move this away from a static class method. | 90 // TODO(guoweis): Move this away from a static class method. |
91 static std::string GetSslCipherSuiteName(int cipher); | 91 static std::string SslCipherSuiteToName(int crypto_suite); |
92 | 92 |
93 bool GetSslCipherSuite(int* cipher) override; | 93 bool GetSslCipherSuite(int* cipher) override; |
94 | 94 |
95 // Key Extractor interface | 95 // Key Extractor interface |
96 bool ExportKeyingMaterial(const std::string& label, | 96 bool ExportKeyingMaterial(const std::string& label, |
97 const uint8_t* context, | 97 const uint8_t* context, |
98 size_t context_len, | 98 size_t context_len, |
99 bool use_context, | 99 bool use_context, |
100 uint8_t* result, | 100 uint8_t* result, |
101 size_t result_len) override; | 101 size_t result_len) override; |
102 | 102 |
103 // DTLS-SRTP interface | 103 // DTLS-SRTP interface |
104 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; | 104 bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites) override; |
105 bool GetDtlsSrtpCipher(std::string* cipher) override; | 105 bool GetDtlsSrtpCryptoSuite(int* crypto_suite) override; |
106 | 106 |
107 // Capabilities interfaces | 107 // Capabilities interfaces |
108 static bool HaveDtls(); | 108 static bool HaveDtls(); |
109 static bool HaveDtlsSrtp(); | 109 static bool HaveDtlsSrtp(); |
110 static bool HaveExporter(); | 110 static bool HaveExporter(); |
111 | 111 |
112 // TODO(guoweis): Move this away from a static class method. | 112 // TODO(guoweis): Move this away from a static class method. |
113 static int GetDefaultSslCipherForTest(SSLProtocolVersion version, | 113 static int GetDefaultSslCipherForTest(SSLProtocolVersion version, |
114 KeyType key_type); | 114 KeyType key_type); |
115 | 115 |
(...skipping 90 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 |