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

Unified 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: Address feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/peerconnection_unittest.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/opensslstreamadapter.h
diff --git a/webrtc/base/opensslstreamadapter.h b/webrtc/base/opensslstreamadapter.h
index e57b2a3293d5942ae15226a778ed39907f965db8..231d059ca81827b31f57608eb0ebedbc324fb7ff 100644
--- a/webrtc/base/opensslstreamadapter.h
+++ b/webrtc/base/opensslstreamadapter.h
@@ -92,6 +92,8 @@ class OpenSSLStreamAdapter : public SSLStreamAdapter {
bool GetSslCipherSuite(int* cipher) override;
+ int GetSslVersion() const override;
+
// Key Extractor interface
bool ExportKeyingMaterial(const std::string& label,
const uint8_t* context,
@@ -109,9 +111,8 @@ class OpenSSLStreamAdapter : public SSLStreamAdapter {
static bool HaveDtlsSrtp();
static bool HaveExporter();
- // TODO(guoweis): Move this away from a static class method.
- static int GetDefaultSslCipherForTest(SSLProtocolVersion version,
- KeyType key_type);
+ static bool IsAcceptableCipher(int cipher, KeyType key_type);
+ static bool IsAcceptableCipher(const std::string& cipher, KeyType key_type);
protected:
void OnEvent(StreamInterface* stream, int events, int err) override;
« no previous file with comments | « webrtc/api/peerconnection_unittest.cc ('k') | webrtc/base/opensslstreamadapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698