Index: webrtc/base/opensslstreamadapter.h |
diff --git a/webrtc/base/opensslstreamadapter.h b/webrtc/base/opensslstreamadapter.h |
index dfcb43902ea26c5c9c38d3519a6115649037cdeb..cf332b155df11e84b69d563430523de0d82d6d2f 100644 |
--- a/webrtc/base/opensslstreamadapter.h |
+++ b/webrtc/base/opensslstreamadapter.h |
@@ -87,10 +87,12 @@ |
void Close() override; |
StreamState GetState() const override; |
- // TODO(guoweis): Move this away from a static class method. |
- static std::string GetSslCipherSuiteName(uint16_t cipher); |
- |
- bool GetSslCipherSuite(uint16_t* cipher) override; |
+#ifndef OPENSSL_IS_BORINGSSL |
+ // Return the RFC (5246, 3268, etc.) cipher name for an OpenSSL cipher. |
+ static const char* GetRfcSslCipherName(const SSL_CIPHER* cipher); |
+#endif |
+ |
+ bool GetSslCipher(std::string* cipher) override; |
// Key Extractor interface |
bool ExportKeyingMaterial(const std::string& label, |
@@ -108,10 +110,8 @@ |
static bool HaveDtls(); |
static bool HaveDtlsSrtp(); |
static bool HaveExporter(); |
- |
- // TODO(guoweis): Move this away from a static class method. |
- static uint16_t GetDefaultSslCipherForTest(SSLProtocolVersion version, |
- KeyType key_type); |
+ static std::string GetDefaultSslCipher(SSLProtocolVersion version, |
+ KeyType key_type); |
protected: |
void OnEvent(StreamInterface* stream, int events, int err) override; |