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

Unified Diff: net/socket/ssl_client_socket_openssl.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_openssl.h
diff --git a/net/socket/ssl_client_socket_openssl.h b/net/socket/ssl_client_socket_openssl.h
index 5f4800a08de3ee71114e706e43dfae353f0fb23a..1f417417c05f2e06c0da0306507ad35b44067821 100644
--- a/net/socket/ssl_client_socket_openssl.h
+++ b/net/socket/ssl_client_socket_openssl.h
@@ -31,6 +31,7 @@ typedef struct x509_st X509;
namespace net {
class CertVerifier;
+class PeerCertificateChain;
wtc 2014/03/10 21:45:34 This class is in the net namespace and is defined
haavardm 2014/03/11 18:43:21 Done.
class SingleRequestCertVerifier;
class SSLCertRequestInfo;
class SSLInfo;
@@ -59,6 +60,9 @@ class SSLClientSocketOpenSSL : public SSLClientSocket {
virtual NextProtoStatus GetNextProto(std::string* proto,
std::string* server_protos) OVERRIDE;
virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE;
+ // For unit testing only.
+ virtual const scoped_refptr<X509Certificate> GetUnverifiedServerCertificate()
wtc 2014/03/10 21:45:34 Here you list the method under an "SSLClientSocket
Ryan Sleevi 2014/03/11 00:15:15 Yeah, not a fan of exposing this publicly.
haavardm 2014/03/11 18:43:21 Done.
+ const OVERRIDE;
// SSLSocket implementation.
virtual int ExportKeyingMaterial(const base::StringPiece& label,
@@ -169,6 +173,7 @@ class SSLClientSocketOpenSSL : public SSLClientSocket {
int transport_write_error_;
// Set when handshake finishes.
+ scoped_ptr<PeerCertificateChain> server_cert_chain_;
scoped_refptr<X509Certificate> server_cert_;
CertVerifyResult server_cert_verify_result_;
bool completed_handshake_;

Powered by Google App Engine
This is Rietveld 408576698