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

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

Issue 1189583002: Support generation of EC keys using P256 curve and support ECDSA certs. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: generalize ssl testing code, misc fixes Created 5 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 virtual bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers); 160 virtual bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers);
161 virtual bool GetDtlsSrtpCipher(std::string* cipher); 161 virtual bool GetDtlsSrtpCipher(std::string* cipher);
162 162
163 // Capabilities testing 163 // Capabilities testing
164 static bool HaveDtls(); 164 static bool HaveDtls();
165 static bool HaveDtlsSrtp(); 165 static bool HaveDtlsSrtp();
166 static bool HaveExporter(); 166 static bool HaveExporter();
167 167
168 // Returns the default Ssl cipher used between streams of this class 168 // Returns the default Ssl cipher used between streams of this class
169 // for the given protocol version. This is used by the unit tests. 169 // for the given protocol version. This is used by the unit tests.
170 static std::string GetDefaultSslCipher(SSLProtocolVersion version); 170 static std::string GetDefaultSslCipher(SSLProtocolVersion version,
171 KeyType key_type = KT_DEFAULT);
juberti1 2015/07/03 03:15:19 Default parameters are frowned upon; please add a
torbjorng (webrtc) 2015/07/06 10:11:55 Done. Incidentally, the ssl unit tests use defaul
171 172
172 private: 173 private:
173 // If true, the server certificate need not match the configured 174 // If true, the server certificate need not match the configured
174 // server_name, and in fact missing certificate authority and other 175 // server_name, and in fact missing certificate authority and other
175 // verification errors are ignored. 176 // verification errors are ignored.
176 bool ignore_bad_cert_; 177 bool ignore_bad_cert_;
177 178
178 // If true (default), the client is required to provide a certificate during 179 // If true (default), the client is required to provide a certificate during
179 // handshake. If no certificate is given, handshake fails. This applies to 180 // handshake. If no certificate is given, handshake fails. This applies to
180 // server mode only. 181 // server mode only.
181 bool client_auth_enabled_; 182 bool client_auth_enabled_;
182 }; 183 };
183 184
184 } // namespace rtc 185 } // namespace rtc
185 186
186 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ 187 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698