Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: webrtc/base/sslstreamadapter.cc

Issue 2167363002: Log how often DTLS negotiation failed because of incompatible ciphersuites. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Desctructor related compiling error. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 SSLStreamAdapter* SSLStreamAdapter::Create(StreamInterface* stream) { 45 SSLStreamAdapter* SSLStreamAdapter::Create(StreamInterface* stream) {
46 #if SSL_USE_OPENSSL 46 #if SSL_USE_OPENSSL
47 return new OpenSSLStreamAdapter(stream); 47 return new OpenSSLStreamAdapter(stream);
48 #else // !SSL_USE_OPENSSL 48 #else // !SSL_USE_OPENSSL
49 return NULL; 49 return NULL;
50 #endif // SSL_USE_OPENSSL 50 #endif // SSL_USE_OPENSSL
51 } 51 }
52 52
53 SSLStreamAdapter::SSLStreamAdapter(StreamInterface* stream)
54 : StreamAdapterInterface(stream),
55 ignore_bad_cert_(false),
56 client_auth_enabled_(true) {}
57
58 SSLStreamAdapter::~SSLStreamAdapter() {}
59
53 bool SSLStreamAdapter::GetSslCipherSuite(int* cipher_suite) { 60 bool SSLStreamAdapter::GetSslCipherSuite(int* cipher_suite) {
54 return false; 61 return false;
55 } 62 }
56 63
57 bool SSLStreamAdapter::ExportKeyingMaterial(const std::string& label, 64 bool SSLStreamAdapter::ExportKeyingMaterial(const std::string& label,
58 const uint8_t* context, 65 const uint8_t* context,
59 size_t context_len, 66 size_t context_len,
60 bool use_context, 67 bool use_context,
61 uint8_t* result, 68 uint8_t* result,
62 size_t result_len) { 69 size_t result_len) {
(...skipping 30 matching lines...) Expand all
93 return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type); 100 return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
94 } 101 }
95 std::string SSLStreamAdapter::SslCipherSuiteToName(int cipher_suite) { 102 std::string SSLStreamAdapter::SslCipherSuiteToName(int cipher_suite) {
96 return OpenSSLStreamAdapter::SslCipherSuiteToName(cipher_suite); 103 return OpenSSLStreamAdapter::SslCipherSuiteToName(cipher_suite);
97 } 104 }
98 #endif // SSL_USE_OPENSSL 105 #endif // SSL_USE_OPENSSL
99 106
100 /////////////////////////////////////////////////////////////////////////////// 107 ///////////////////////////////////////////////////////////////////////////////
101 108
102 } // namespace rtc 109 } // namespace rtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698