Index: webrtc/base/sslstreamadapter.cc |
diff --git a/webrtc/base/sslstreamadapter.cc b/webrtc/base/sslstreamadapter.cc |
index 8930f2185d8fd2ad5c96b1008aadf6738685198e..42dea9c0362f6910f550a36830e4dade3cecc5f1 100644 |
--- a/webrtc/base/sslstreamadapter.cc |
+++ b/webrtc/base/sslstreamadapter.cc |
@@ -29,19 +29,6 @@ |
namespace rtc { |
-// TODO(guoweis): Move this to SDP layer and use int form internally. |
-// webrtc:5043. |
-const char CS_AES_CM_128_HMAC_SHA1_80[] = "AES_CM_128_HMAC_SHA1_80"; |
-const char CS_AES_CM_128_HMAC_SHA1_32[] = "AES_CM_128_HMAC_SHA1_32"; |
- |
-uint16_t GetSrtpCryptoSuiteFromName(const std::string& cipher) { |
- if (cipher == CS_AES_CM_128_HMAC_SHA1_32) |
- return SRTP_AES128_CM_SHA1_32; |
- if (cipher == CS_AES_CM_128_HMAC_SHA1_80) |
- return SRTP_AES128_CM_SHA1_80; |
- return 0; |
-} |
- |
SSLStreamAdapter* SSLStreamAdapter::Create(StreamInterface* stream) { |
#if SSL_USE_SCHANNEL |
return NULL; |
@@ -52,7 +39,7 @@ |
#endif |
} |
-bool SSLStreamAdapter::GetSslCipherSuite(uint16_t* cipher) { |
+bool SSLStreamAdapter::GetSslCipher(std::string* cipher) { |
return false; |
} |
@@ -79,10 +66,9 @@ |
bool SSLStreamAdapter::HaveDtls() { return false; } |
bool SSLStreamAdapter::HaveDtlsSrtp() { return false; } |
bool SSLStreamAdapter::HaveExporter() { return false; } |
-uint16_t SSLStreamAdapter::GetDefaultSslCipherForTest( |
- SSLProtocolVersion version, |
- KeyType key_type) { |
- return 0; |
+std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version, |
+ KeyType key_type) { |
+ return std::string(); |
} |
#elif SSL_USE_OPENSSL |
bool SSLStreamAdapter::HaveDtls() { |
@@ -94,14 +80,9 @@ |
bool SSLStreamAdapter::HaveExporter() { |
return OpenSSLStreamAdapter::HaveExporter(); |
} |
-uint16_t SSLStreamAdapter::GetDefaultSslCipherForTest( |
- SSLProtocolVersion version, |
- KeyType key_type) { |
- return OpenSSLStreamAdapter::GetDefaultSslCipherForTest(version, key_type); |
-} |
- |
-std::string SSLStreamAdapter::GetSslCipherSuiteName(uint16_t cipher) { |
- return OpenSSLStreamAdapter::GetSslCipherSuiteName(cipher); |
+std::string SSLStreamAdapter::GetDefaultSslCipher(SSLProtocolVersion version, |
+ KeyType key_type) { |
+ return OpenSSLStreamAdapter::GetDefaultSslCipher(version, key_type); |
} |
#endif // !SSL_USE_SCHANNEL && !SSL_USE_OPENSSL |