| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONFIG_H_ | 5 #ifndef NET_SSL_SSL_CONFIG_H_ |
| 6 #define NET_SSL_SSL_CONFIG_H_ | 6 #define NET_SSL_SSL_CONFIG_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
| 12 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
| 13 #include "net/socket/next_proto.h" | 13 #include "net/socket/next_proto.h" |
| 14 #include "net/ssl/ssl_private_key.h" |
| 14 | 15 |
| 15 namespace net { | 16 namespace net { |
| 16 | 17 |
| 17 // Various TLS/SSL ProtocolVersion values encoded as uint16 | 18 // Various TLS/SSL ProtocolVersion values encoded as uint16 |
| 18 // struct { | 19 // struct { |
| 19 // uint8 major; | 20 // uint8 major; |
| 20 // uint8 minor; | 21 // uint8 minor; |
| 21 // } ProtocolVersion; | 22 // } ProtocolVersion; |
| 22 // The most significant byte is |major|, and the least significant byte | 23 // The most significant byte is |major|, and the least significant byte |
| 23 // is |minor|. | 24 // is |minor|. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 NextProtoVector npn_protos; | 171 NextProtoVector npn_protos; |
| 171 | 172 |
| 172 // True if renegotiation should be allowed for the default application-level | 173 // True if renegotiation should be allowed for the default application-level |
| 173 // protocol when the peer negotiates neither ALPN nor NPN. | 174 // protocol when the peer negotiates neither ALPN nor NPN. |
| 174 bool renego_allowed_default; | 175 bool renego_allowed_default; |
| 175 | 176 |
| 176 // The list of application-level protocols to enable renegotiation for. | 177 // The list of application-level protocols to enable renegotiation for. |
| 177 NextProtoVector renego_allowed_for_protos; | 178 NextProtoVector renego_allowed_for_protos; |
| 178 | 179 |
| 179 scoped_refptr<X509Certificate> client_cert; | 180 scoped_refptr<X509Certificate> client_cert; |
| 181 scoped_refptr<SSLPrivateKey> client_private_key; |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace net | 184 } // namespace net |
| 183 | 185 |
| 184 #endif // NET_SSL_SSL_CONFIG_H_ | 186 #endif // NET_SSL_SSL_CONFIG_H_ |
| OLD | NEW |