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

Side by Side Diff: net/ssl/ssl_server_config.h

Issue 1518613002: Support for server session cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client_certs
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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SSL_SSL_SERVER_CONFIG_H_ 5 #ifndef NET_SSL_SSL_SERVER_CONFIG_H_
6 #define NET_SSL_SSL_SERVER_CONFIG_H_ 6 #define NET_SSL_SSL_SERVER_CONFIG_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool require_client_cert; 60 bool require_client_cert;
61 61
62 // List of DER-encoded X.509 DistinguishedName of certificate authorities 62 // List of DER-encoded X.509 DistinguishedName of certificate authorities
63 // to be included in the CertificateRequest handshake message, 63 // to be included in the CertificateRequest handshake message,
64 // if client certificates are required. 64 // if client certificates are required.
65 std::vector<std::string> cert_authorities_; 65 std::vector<std::string> cert_authorities_;
66 66
67 // Provides the CertificateVerifier that is to be used to verify 67 // Provides the CertificateVerifier that is to be used to verify
68 // client certificates during the handshake. 68 // client certificates during the handshake.
69 // The |client_cert_verifier| continues to be owned by the caller, 69 // The |client_cert_verifier| continues to be owned by the caller,
70 // and must outlive any sockets using this SSLServerConfig. 70 // and must outlive any sockets spawned from this SSLServerSocketContext.
71
71 // This field is meaningful only if client certificates are required. 72 // This field is meaningful only if client certificates are required.
72 // If a verifier is not provided then all certificates are accepted. 73 // If a verifier is not provided then all certificates are accepted.
73 ClientCertVerifier* client_cert_verifier; 74 ClientCertVerifier* client_cert_verifier;
74 }; 75 };
75 76
76 } // namespace net 77 } // namespace net
77 78
78 #endif // NET_SSL_SSL_SERVER_CONFIG_H_ 79 #endif // NET_SSL_SSL_SERVER_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698