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

Unified Diff: net/socket/ssl_client_socket_openssl.h

Issue 994743003: Support for client certs in ssl_server_socket. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 6aaf1e16672d65dc753da56ded07c2e90f546a34..97426ef34e703dee286f014609a01bd0d8eb98e4 100644
--- a/net/socket/ssl_client_socket_openssl.h
+++ b/net/socket/ssl_client_socket_openssl.h
@@ -103,6 +103,9 @@ class SSLClientSocketOpenSSL : public SSLClientSocket {
// SSLClientSocket implementation.
scoped_refptr<X509Certificate> GetUnverifiedServerCertificateChain()
const override;
+ void ForceClientCertificateAndKeyForTest(
+ scoped_refptr<X509Certificate> client_cert,
+ scoped_ptr<crypto::RSAPrivateKey> client_private_key) override;
private:
class PeerCertificateChain;
@@ -313,6 +316,9 @@ class SSLClientSocketOpenSSL : public SSLClientSocket {
// pinning failure. It is a (somewhat) human-readable string.
std::string pinning_failure_log_;
+ // Used only for unit testing.
+ scoped_ptr<crypto::RSAPrivateKey> client_private_key_;
+
BoundNetLog net_log_;
base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
};

Powered by Google App Engine
This is Rietveld 408576698