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

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

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/sslstreamadapter.h ('k') | webrtc/base/sslstreamadapter_unittest.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool SSLStreamAdapter::GetDtlsSrtpCipher(std::string* cipher) { 66 bool SSLStreamAdapter::GetDtlsSrtpCipher(std::string* cipher) {
67 return false; 67 return false;
68 } 68 }
69 69
70 // Note: this matches the logic above with SCHANNEL dominating 70 // Note: this matches the logic above with SCHANNEL dominating
71 #if SSL_USE_SCHANNEL 71 #if SSL_USE_SCHANNEL
72 bool SSLStreamAdapter::HaveDtls() { return false; } 72 bool SSLStreamAdapter::HaveDtls() { return false; }
73 bool SSLStreamAdapter::HaveDtlsSrtp() { return false; } 73 bool SSLStreamAdapter::HaveDtlsSrtp() { return false; }
74 bool SSLStreamAdapter::HaveExporter() { return false; } 74 bool SSLStreamAdapter::HaveExporter() { return false; }
75 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version) { 75 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version,
76 KeyType key_type) {
76 return std::string(); 77 return std::string();
77 } 78 }
78 #elif SSL_USE_OPENSSL 79 #elif SSL_USE_OPENSSL
79 bool SSLStreamAdapter::HaveDtls() { 80 bool SSLStreamAdapter::HaveDtls() {
80 return OpenSSLStreamAdapter::HaveDtls(); 81 return OpenSSLStreamAdapter::HaveDtls();
81 } 82 }
82 bool SSLStreamAdapter::HaveDtlsSrtp() { 83 bool SSLStreamAdapter::HaveDtlsSrtp() {
83 return OpenSSLStreamAdapter::HaveDtlsSrtp(); 84 return OpenSSLStreamAdapter::HaveDtlsSrtp();
84 } 85 }
85 bool SSLStreamAdapter::HaveExporter() { 86 bool SSLStreamAdapter::HaveExporter() {
86 return OpenSSLStreamAdapter::HaveExporter(); 87 return OpenSSLStreamAdapter::HaveExporter();
87 } 88 }
88 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version) { 89 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version,
89 return OpenSSLStreamAdapter::GetDefaultSslCipher(version); 90 KeyType key_type) {
91 return OpenSSLStreamAdapter::GetDefaultSslCipher(version, key_type);
90 } 92 }
91 #elif SSL_USE_NSS 93 #elif SSL_USE_NSS
92 bool SSLStreamAdapter::HaveDtls() { 94 bool SSLStreamAdapter::HaveDtls() {
93 return NSSStreamAdapter::HaveDtls(); 95 return NSSStreamAdapter::HaveDtls();
94 } 96 }
95 bool SSLStreamAdapter::HaveDtlsSrtp() { 97 bool SSLStreamAdapter::HaveDtlsSrtp() {
96 return NSSStreamAdapter::HaveDtlsSrtp(); 98 return NSSStreamAdapter::HaveDtlsSrtp();
97 } 99 }
98 bool SSLStreamAdapter::HaveExporter() { 100 bool SSLStreamAdapter::HaveExporter() {
99 return NSSStreamAdapter::HaveExporter(); 101 return NSSStreamAdapter::HaveExporter();
100 } 102 }
101 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version) { 103 std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version,
102 return NSSStreamAdapter::GetDefaultSslCipher(version); 104 KeyType key_type) {
105 return NSSStreamAdapter::GetDefaultSslCipher(version, key_type);
103 } 106 }
104 #endif // !SSL_USE_SCHANNEL && !SSL_USE_OPENSSL && !SSL_USE_NSS 107 #endif // !SSL_USE_SCHANNEL && !SSL_USE_OPENSSL && !SSL_USE_NSS
105 108
106 /////////////////////////////////////////////////////////////////////////////// 109 ///////////////////////////////////////////////////////////////////////////////
107 110
108 } // namespace rtc 111 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/sslstreamadapter.h ('k') | webrtc/base/sslstreamadapter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698