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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 size_t result_len); | 188 size_t result_len); |
189 | 189 |
190 // DTLS-SRTP interface | 190 // DTLS-SRTP interface |
191 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); | 191 virtual bool SetDtlsSrtpCryptoSuites(const std::vector<int>& crypto_suites); |
192 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); | 192 virtual bool GetDtlsSrtpCryptoSuite(int* crypto_suite); |
193 | 193 |
194 // Capabilities testing | 194 // Capabilities testing |
195 static bool HaveDtls(); | 195 static bool HaveDtls(); |
196 static bool HaveDtlsSrtp(); | 196 static bool HaveDtlsSrtp(); |
197 static bool HaveExporter(); | 197 static bool HaveExporter(); |
| 198 static bool IsBoringSsl(); |
198 | 199 |
199 // Returns true iff the supplied cipher is deemed to be strong. | 200 // Returns true iff the supplied cipher is deemed to be strong. |
200 // TODO(torbjorng): Consider removing the KeyType argument. | 201 // TODO(torbjorng): Consider removing the KeyType argument. |
201 static bool IsAcceptableCipher(int cipher, KeyType key_type); | 202 static bool IsAcceptableCipher(int cipher, KeyType key_type); |
202 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); | 203 static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type); |
203 | 204 |
204 // TODO(guoweis): Move this away from a static class method. Currently this is | 205 // TODO(guoweis): Move this away from a static class method. Currently this is |
205 // introduced such that any caller could depend on sslstreamadapter.h without | 206 // introduced such that any caller could depend on sslstreamadapter.h without |
206 // depending on specific SSL implementation. | 207 // depending on specific SSL implementation. |
207 static std::string SslCipherSuiteToName(int cipher_suite); | 208 static std::string SslCipherSuiteToName(int cipher_suite); |
208 | 209 |
209 private: | 210 private: |
210 // If true, the server certificate need not match the configured | 211 // If true, the server certificate need not match the configured |
211 // server_name, and in fact missing certificate authority and other | 212 // server_name, and in fact missing certificate authority and other |
212 // verification errors are ignored. | 213 // verification errors are ignored. |
213 bool ignore_bad_cert_; | 214 bool ignore_bad_cert_; |
214 | 215 |
215 // If true (default), the client is required to provide a certificate during | 216 // If true (default), the client is required to provide a certificate during |
216 // handshake. If no certificate is given, handshake fails. This applies to | 217 // handshake. If no certificate is given, handshake fails. This applies to |
217 // server mode only. | 218 // server mode only. |
218 bool client_auth_enabled_; | 219 bool client_auth_enabled_; |
219 }; | 220 }; |
220 | 221 |
221 } // namespace rtc | 222 } // namespace rtc |
222 | 223 |
223 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ | 224 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ |
OLD | NEW |