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

Side by Side Diff: webrtc/base/opensslstreamadapter.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/opensslidentity.cc ('k') | webrtc/base/opensslstreamadapter.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 size_t result_len) override; 103 size_t result_len) override;
104 104
105 // DTLS-SRTP interface 105 // DTLS-SRTP interface
106 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; 106 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override;
107 bool GetDtlsSrtpCipher(std::string* cipher) override; 107 bool GetDtlsSrtpCipher(std::string* cipher) override;
108 108
109 // Capabilities interfaces 109 // Capabilities interfaces
110 static bool HaveDtls(); 110 static bool HaveDtls();
111 static bool HaveDtlsSrtp(); 111 static bool HaveDtlsSrtp();
112 static bool HaveExporter(); 112 static bool HaveExporter();
113 static std::string GetDefaultSslCipher(SSLProtocolVersion version); 113 static std::string GetDefaultSslCipher(SSLProtocolVersion version,
114 KeyType key_type);
114 115
115 protected: 116 protected:
116 void OnEvent(StreamInterface* stream, int events, int err) override; 117 void OnEvent(StreamInterface* stream, int events, int err) override;
117 118
118 private: 119 private:
119 enum SSLState { 120 enum SSLState {
120 // Before calling one of the StartSSL methods, data flows 121 // Before calling one of the StartSSL methods, data flows
121 // in clear text. 122 // in clear text.
122 SSL_NONE, 123 SSL_NONE,
123 SSL_WAIT, // waiting for the stream to open to start SSL negotiation 124 SSL_WAIT, // waiting for the stream to open to start SSL negotiation
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 // Max. allowed protocol version 207 // Max. allowed protocol version
207 SSLProtocolVersion ssl_max_version_; 208 SSLProtocolVersion ssl_max_version_;
208 }; 209 };
209 210
210 ///////////////////////////////////////////////////////////////////////////// 211 /////////////////////////////////////////////////////////////////////////////
211 212
212 } // namespace rtc 213 } // namespace rtc
213 214
214 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ 215 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__
OLDNEW
« no previous file with comments | « webrtc/base/opensslidentity.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698