OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 ClientCertType client_cert_type; | 65 ClientCertType client_cert_type; |
66 | 66 |
67 // List of DER-encoded X.509 DistinguishedName of certificate authorities | 67 // List of DER-encoded X.509 DistinguishedName of certificate authorities |
68 // to be included in the CertificateRequest handshake message, | 68 // to be included in the CertificateRequest handshake message, |
69 // if client certificates are required. | 69 // if client certificates are required. |
70 std::vector<std::string> cert_authorities_; | 70 std::vector<std::string> cert_authorities_; |
71 | 71 |
72 // Provides the ClientCertVerifier that is to be used to verify | 72 // Provides the ClientCertVerifier that is to be used to verify |
73 // client certificates during the handshake. | 73 // client certificates during the handshake. |
74 // The |client_cert_verifier| continues to be owned by the caller, | 74 // The |client_cert_verifier| continues to be owned by the caller, |
75 // and must outlive any sockets using this SSLServerConfig. | 75 // and must outlive any sockets spawned from this SSLServerContext. |
76 // This field is meaningful only if client certificates are requested. | 76 // This field is meaningful only if client certificates are requested. |
77 // If a verifier is not provided then all certificates are accepted. | 77 // If a verifier is not provided then all certificates are accepted. |
78 ClientCertVerifier* client_cert_verifier; | 78 ClientCertVerifier* client_cert_verifier; |
79 }; | 79 }; |
80 | 80 |
81 } // namespace net | 81 } // namespace net |
82 | 82 |
83 #endif // NET_SSL_SSL_SERVER_CONFIG_H_ | 83 #endif // NET_SSL_SSL_SERVER_CONFIG_H_ |
OLD | NEW |