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

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: rebase, glue to hbos's changes Created 5 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/sslidentity_unittest.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 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 // TODO(torbjorng@webrtc.org): Fix callers to avoid default parameter.
171 static std::string GetDefaultSslCipher(SSLProtocolVersion version,
172 KeyType key_type = KT_DEFAULT);
171 173
172 private: 174 private:
173 // If true, the server certificate need not match the configured 175 // If true, the server certificate need not match the configured
174 // server_name, and in fact missing certificate authority and other 176 // server_name, and in fact missing certificate authority and other
175 // verification errors are ignored. 177 // verification errors are ignored.
176 bool ignore_bad_cert_; 178 bool ignore_bad_cert_;
177 179
178 // If true (default), the client is required to provide a certificate during 180 // If true (default), the client is required to provide a certificate during
179 // handshake. If no certificate is given, handshake fails. This applies to 181 // handshake. If no certificate is given, handshake fails. This applies to
180 // server mode only. 182 // server mode only.
181 bool client_auth_enabled_; 183 bool client_auth_enabled_;
182 }; 184 };
183 185
184 } // namespace rtc 186 } // namespace rtc
185 187
186 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_ 188 #endif // WEBRTC_BASE_SSLSTREAMADAPTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/sslidentity_unittest.cc ('k') | webrtc/base/sslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698