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

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

Issue 1981463002: Change initial DTLS retransmission timer from 1 second to 50ms. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing typo in comment. Created 4 years, 6 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/opensslstreamadapter.cc ('k') | webrtc/base/sslstreamadapter.cc » ('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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « webrtc/base/opensslstreamadapter.cc ('k') | webrtc/base/sslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698