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

Side by Side Diff: webrtc/base/nssstreamadapter.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/nssidentity.cc ('k') | webrtc/base/nssstreamadapter.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 size_t result_len) override; 84 size_t result_len) override;
85 85
86 // DTLS-SRTP interface 86 // DTLS-SRTP interface
87 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override; 87 bool SetDtlsSrtpCiphers(const std::vector<std::string>& ciphers) override;
88 bool GetDtlsSrtpCipher(std::string* cipher) override; 88 bool GetDtlsSrtpCipher(std::string* cipher) override;
89 89
90 // Capabilities interfaces 90 // Capabilities interfaces
91 static bool HaveDtls(); 91 static bool HaveDtls();
92 static bool HaveDtlsSrtp(); 92 static bool HaveDtlsSrtp();
93 static bool HaveExporter(); 93 static bool HaveExporter();
94 static std::string GetDefaultSslCipher(SSLProtocolVersion version); 94 static std::string GetDefaultSslCipher(SSLProtocolVersion version,
95 KeyType key_type);
95 96
96 protected: 97 protected:
97 // Override SSLStreamAdapter 98 // Override SSLStreamAdapter
98 void OnEvent(StreamInterface* stream, int events, int err) override; 99 void OnEvent(StreamInterface* stream, int events, int err) override;
99 100
100 // Override SSLStreamAdapterHelper 101 // Override SSLStreamAdapterHelper
101 int BeginSSL() override; 102 int BeginSSL() override;
102 void Cleanup() override; 103 void Cleanup() override;
103 bool GetDigestLength(const std::string& algorithm, size_t* length) override; 104 bool GetDigestLength(const std::string& algorithm, size_t* length) override;
104 105
(...skipping 10 matching lines...) Expand all
115 static bool initialized; // Was InitializeSSL() called? 116 static bool initialized; // Was InitializeSSL() called?
116 bool cert_ok_; // Did we get and check a cert 117 bool cert_ok_; // Did we get and check a cert
117 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list 118 std::vector<PRUint16> srtp_ciphers_; // SRTP cipher list
118 119
119 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity 120 static PRDescIdentity nspr_layer_identity; // The NSPR layer identity
120 }; 121 };
121 122
122 } // namespace rtc 123 } // namespace rtc
123 124
124 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_ 125 #endif // WEBRTC_BASE_NSSSTREAMADAPTER_H_
OLDNEW
« no previous file with comments | « webrtc/base/nssidentity.cc ('k') | webrtc/base/nssstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698