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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |