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

Unified Diff: net/socket/ssl_client_socket_nss.h

Issue 173853014: Make OpenSSL UpdateServerCert() OS independent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test case for retrieving unverified server cert chain. Created 6 years, 10 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
Index: net/socket/ssl_client_socket_nss.h
diff --git a/net/socket/ssl_client_socket_nss.h b/net/socket/ssl_client_socket_nss.h
index 47fed74d9d3361f131840b487e0971929b224b9f..9b93257e32f00e3c7e6a6c328341e71bb1b799ee 100644
--- a/net/socket/ssl_client_socket_nss.h
+++ b/net/socket/ssl_client_socket_nss.h
@@ -80,6 +80,9 @@ class SSLClientSocketNSS : public SSLClientSocket {
unsigned char* out,
unsigned int outlen) OVERRIDE;
virtual int GetTLSUniqueChannelBinding(std::string* out) OVERRIDE;
+ // For unit testing only.
+ virtual const scoped_refptr<X509Certificate> GetUnverifiedServerCertificate()
wtc 2014/03/10 21:45:34 1. This method is listed under the "SSLSocket impl
Ryan Sleevi 2014/03/11 00:15:15 did you mean for this to be "const scoped_refptr<X
haavardm 2014/03/11 18:43:21 No need for scoped pointer here at all, so I'll us
haavardm 2014/03/11 18:43:21 Done.
+ const OVERRIDE;
// StreamSocket implementation.
virtual int Connect(const CompletionCallback& callback) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698