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

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

Issue 1774583002: Add IsAcceptableCipher, use instead of GetDefaultCipher. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: List another cipher suite Created 4 years, 9 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Capabilities interfaces 107 // Capabilities interfaces
108 static bool HaveDtls(); 108 static bool HaveDtls();
109 static bool HaveDtlsSrtp(); 109 static bool HaveDtlsSrtp();
110 static bool HaveExporter(); 110 static bool HaveExporter();
111 111
112 // TODO(guoweis): Move this away from a static class method. 112 // TODO(guoweis): Move this away from a static class method.
113 static int GetDefaultSslCipherForTest(SSLProtocolVersion version, 113 static int GetDefaultSslCipherForTest(SSLProtocolVersion version,
114 KeyType key_type); 114 KeyType key_type);
115 115
116 static bool IsAcceptableCipher(int cipher,
117 SSLProtocolVersion version,
118 KeyType key_type);
119 static bool IsAcceptableCipher(std::string cipher,
120 SSLProtocolVersion version,
121 KeyType key_type);
122
116 protected: 123 protected:
117 void OnEvent(StreamInterface* stream, int events, int err) override; 124 void OnEvent(StreamInterface* stream, int events, int err) override;
118 125
119 private: 126 private:
120 enum SSLState { 127 enum SSLState {
121 // Before calling one of the StartSSL methods, data flows 128 // Before calling one of the StartSSL methods, data flows
122 // in clear text. 129 // in clear text.
123 SSL_NONE, 130 SSL_NONE,
124 SSL_WAIT, // waiting for the stream to open to start SSL negotiation 131 SSL_WAIT, // waiting for the stream to open to start SSL negotiation
125 SSL_CONNECTING, // SSL negotiation in progress 132 SSL_CONNECTING, // SSL negotiation in progress
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 213
207 // Max. allowed protocol version 214 // Max. allowed protocol version
208 SSLProtocolVersion ssl_max_version_; 215 SSLProtocolVersion ssl_max_version_;
209 }; 216 };
210 217
211 ///////////////////////////////////////////////////////////////////////////// 218 /////////////////////////////////////////////////////////////////////////////
212 219
213 } // namespace rtc 220 } // namespace rtc
214 221
215 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__ 222 #endif // WEBRTC_BASE_OPENSSLSTREAMADAPTER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698