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

Unified Diff: net/ssl/ssl_server_config.h

Issue 1474983003: Support for client certs in ssl_server_socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 11 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/ssl/ssl_server_config.h
diff --git a/net/ssl/ssl_server_config.h b/net/ssl/ssl_server_config.h
index 36d1286b22552ea7da16561f099740bac091cfc1..51eff5597d452e5b15a8ae1fce23837b34eb511e 100644
--- a/net/ssl/ssl_server_config.h
+++ b/net/ssl/ssl_server_config.h
@@ -14,6 +14,8 @@
namespace net {
+class ClientCertVerifier;
+
// A collection of server-side SSL-related configuration settings.
struct NET_EXPORT SSLServerConfig {
// Defaults
@@ -56,6 +58,19 @@ struct NET_EXPORT SSLServerConfig {
// Requires a client certificate for client authentication from the client.
// This doesn't currently enforce certificate validity.
bool require_client_cert;
+
+ // List of DER-encoded X.509 DistinguishedName of certificate authorities
+ // to be included in the CertificateRequest handshake message,
+ // if client certificates are required.
+ std::vector<std::string> cert_authorities_;
+
+ // Provides the CertificateVerifier that is to be used to verify
+ // client certificates during the handshake.
+ // The |client_cert_verifier| continues to be owned by the caller,
+ // and must outlive any sockets using this SSLServerConfig.
+ // This field is meaningful only if client certificates are required.
+ // If a verifier is not provided then all certificates are accepted.
+ ClientCertVerifier* client_cert_verifier;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698