summaryrefslogtreecommitdiffstats
path: root/net/socket/ssl_client_socket_nss.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-20 15:01:16 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-20 15:01:16 +0000
commit9f864b3e9d0650004a957035d08357c2bde81b99 (patch)
treec373f03088eae4d9688285165877660b814c5b87 /net/socket/ssl_client_socket_nss.cc
parent5f9a7f97780db19175a8549d39b97f62fa6c9afb (diff)
downloadchromium_src-9f864b3e9d0650004a957035d08357c2bde81b99.zip
chromium_src-9f864b3e9d0650004a957035d08357c2bde81b99.tar.gz
chromium_src-9f864b3e9d0650004a957035d08357c2bde81b99.tar.bz2
Turn GetPeerName into a pure virtual and provide local impls, this way any future bugs like the one referenced are compile time and not runtime so they won't wide waiting to be found.
BUG=32595 TEST=everything builds and tests pass Review URL: http://codereview.chromium.org/552048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/ssl_client_socket_nss.cc')
-rw-r--r--net/socket/ssl_client_socket_nss.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc
index 05c61dd..350a4c9 100644
--- a/net/socket/ssl_client_socket_nss.cc
+++ b/net/socket/ssl_client_socket_nss.cc
@@ -447,6 +447,10 @@ bool SSLClientSocketNSS::IsConnectedAndIdle() const {
return ret;
}
+int SSLClientSocketNSS::GetPeerName(struct sockaddr* name, socklen_t* namelen) {
+ return transport_->GetPeerName(name, namelen);
+}
+
int SSLClientSocketNSS::Read(IOBuffer* buf, int buf_len,
CompletionCallback* callback) {
EnterFunction(buf_len);