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

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: Use enum for handshake error code. Created 4 years, 4 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
« no previous file with comments | « webrtc/base/sslstreamadapter.h ('k') | webrtc/p2p/base/dtlstransportchannel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 SSLStreamAdapter* SSLStreamAdapter::Create(StreamInterface* stream) { 103 SSLStreamAdapter* SSLStreamAdapter::Create(StreamInterface* stream) {
104 #if SSL_USE_OPENSSL 104 #if SSL_USE_OPENSSL
105 return new OpenSSLStreamAdapter(stream); 105 return new OpenSSLStreamAdapter(stream);
106 #else // !SSL_USE_OPENSSL 106 #else // !SSL_USE_OPENSSL
107 return NULL; 107 return NULL;
108 #endif // SSL_USE_OPENSSL 108 #endif // SSL_USE_OPENSSL
109 } 109 }
110 110
111 SSLStreamAdapter::SSLStreamAdapter(StreamInterface* stream)
112 : StreamAdapterInterface(stream),
113 ignore_bad_cert_(false),
114 client_auth_enabled_(true) {}
115
116 SSLStreamAdapter::~SSLStreamAdapter() {}
117
111 bool SSLStreamAdapter::GetSslCipherSuite(int* cipher_suite) { 118 bool SSLStreamAdapter::GetSslCipherSuite(int* cipher_suite) {
112 return false; 119 return false;
113 } 120 }
114 121
115 bool SSLStreamAdapter::ExportKeyingMaterial(const std::string& label, 122 bool SSLStreamAdapter::ExportKeyingMaterial(const std::string& label,
116 const uint8_t* context, 123 const uint8_t* context,
117 size_t context_len, 124 size_t context_len,
118 bool use_context, 125 bool use_context,
119 uint8_t* result, 126 uint8_t* result,
120 size_t result_len) { 127 size_t result_len) {
(...skipping 30 matching lines...) Expand all
151 return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type); 158 return OpenSSLStreamAdapter::IsAcceptableCipher(cipher, key_type);
152 } 159 }
153 std::string SSLStreamAdapter::SslCipherSuiteToName(int cipher_suite) { 160 std::string SSLStreamAdapter::SslCipherSuiteToName(int cipher_suite) {
154 return OpenSSLStreamAdapter::SslCipherSuiteToName(cipher_suite); 161 return OpenSSLStreamAdapter::SslCipherSuiteToName(cipher_suite);
155 } 162 }
156 #endif // SSL_USE_OPENSSL 163 #endif // SSL_USE_OPENSSL
157 164
158 /////////////////////////////////////////////////////////////////////////////// 165 ///////////////////////////////////////////////////////////////////////////////
159 166
160 } // namespace rtc 167 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter.h ('k') | webrtc/p2p/base/dtlstransportchannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698