Revert 8275 "This CL adds an API to the SSL stream adapters and ..."
I'm reverting the patch due to compilation issues. It would be great if we could make sure Chromium is ready for the patch before we land it in WebRTC. As is, we're trying to roll webrtc into Chromium and we can't (this is not the only reason though). I might reland this after the roll, depending on how that goes though. Here's an example failure: e:\b\build\slave\win_gn\build\src\jingle\glue\channel_socket_adapter_unittest.cc(77) : error C2259: 'jingle_glue::MockTransportChannel' : cannot instantiate abstract class due to following members: 'bool cricket::TransportChannel::GetSslCipher(std::string *)' : is abstract e:\b\build\slave\win_gn\build\src\third_party\webrtc\p2p\base\transportchannel.h(107) : see declaration of 'cricket::TransportChannel::GetSslCipher' ninja: build stopped: subcommand failed. > This CL adds an API to the SSL stream adapters and transport channels to get the SSL cipher that was negotiated with the remote peer. > > BUG=3976 > R=davidben@chromium.org, juberti@webrtc.org, pthatcher@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/26009004 TBR=pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/40689004 Cr-Commit-Position: refs/heads/master@{#8282} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8282 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -388,13 +388,6 @@ class SSLStreamAdapterTestBase : public testing::Test,
|
||||
return server_ssl_->GetPeerCertificate(cert);
|
||||
}
|
||||
|
||||
bool GetSslCipher(bool client, std::string *retval) {
|
||||
if (client)
|
||||
return client_ssl_->GetSslCipher(retval);
|
||||
else
|
||||
return server_ssl_->GetSslCipher(retval);
|
||||
}
|
||||
|
||||
bool ExportKeyingMaterial(const char *label,
|
||||
const unsigned char *context,
|
||||
size_t context_len,
|
||||
@ -946,17 +939,3 @@ TEST_F(SSLStreamAdapterTestDTLSFromPEMStrings, TestDTLSGetPeerCertificate) {
|
||||
rtc::SSLCertChain* server_peer_chain;
|
||||
ASSERT_FALSE(server_peer_cert->GetChain(&server_peer_chain));
|
||||
}
|
||||
|
||||
// Test getting the used DTLS ciphers.
|
||||
TEST_F(SSLStreamAdapterTestDTLS, TestGetSslCipher) {
|
||||
MAYBE_SKIP_TEST(HaveDtls);
|
||||
TestHandshake();
|
||||
|
||||
std::string client_cipher;
|
||||
ASSERT_TRUE(GetSslCipher(true, &client_cipher));
|
||||
std::string server_cipher;
|
||||
ASSERT_TRUE(GetSslCipher(false, &server_cipher));
|
||||
|
||||
ASSERT_EQ(client_cipher, server_cipher);
|
||||
ASSERT_EQ(rtc::SSLStreamAdapter::GetDefaultSslCipher(), client_cipher);
|
||||
}
|
||||
|
Reference in New Issue
Block a user