| 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 #include "net/ssl/ssl_private_key.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 // Various TLS/SSL ProtocolVersion values encoded as uint16_t | 18 // Various TLS/SSL ProtocolVersion values encoded as uint16_t |
| 19 // struct { | 19 // struct { |
| 20 // uint8_t major; | 20 // uint8_t major; |
| 21 // uint8_t minor; | 21 // uint8_t minor; |
| 22 // } ProtocolVersion; | 22 // } ProtocolVersion; |
| 23 // The most significant byte is |major|, and the least significant byte | 23 // The most significant byte is |major|, and the least significant byte |
| 24 // is |minor|. | 24 // is |minor|. |
| 25 enum { | 25 enum { |
| 26 SSL_PROTOCOL_VERSION_TLS1 = 0x0301, | 26 SSL_PROTOCOL_VERSION_TLS1 = 0x0301, |
| 27 SSL_PROTOCOL_VERSION_TLS1_1 = 0x0302, | 27 SSL_PROTOCOL_VERSION_TLS1_1 = 0x0302, |
| 28 SSL_PROTOCOL_VERSION_TLS1_2 = 0x0303, | 28 SSL_PROTOCOL_VERSION_TLS1_2 = 0x0303, |
| 29 SSL_PROTOCOL_VERSION_TLS1_3 = 0x0304, |
| 29 }; | 30 }; |
| 30 | 31 |
| 31 enum TokenBindingParam { | 32 enum TokenBindingParam { |
| 32 TB_PARAM_RSA2048_PKCS15 = 0, | 33 TB_PARAM_RSA2048_PKCS15 = 0, |
| 33 TB_PARAM_RSA2048_PSS = 1, | 34 TB_PARAM_RSA2048_PSS = 1, |
| 34 TB_PARAM_ECDSAP256 = 2, | 35 TB_PARAM_ECDSAP256 = 2, |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 // Default minimum protocol version. | 38 // Default minimum protocol version. |
| 38 NET_EXPORT extern const uint16_t kDefaultSSLVersionMin; | 39 NET_EXPORT extern const uint16_t kDefaultSSLVersionMin; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 // The list of application-level protocols to enable renegotiation for. | 187 // The list of application-level protocols to enable renegotiation for. |
| 187 NextProtoVector renego_allowed_for_protos; | 188 NextProtoVector renego_allowed_for_protos; |
| 188 | 189 |
| 189 scoped_refptr<X509Certificate> client_cert; | 190 scoped_refptr<X509Certificate> client_cert; |
| 190 scoped_refptr<SSLPrivateKey> client_private_key; | 191 scoped_refptr<SSLPrivateKey> client_private_key; |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 } // namespace net | 194 } // namespace net |
| 194 | 195 |
| 195 #endif // NET_SSL_SSL_CONFIG_H_ | 196 #endif // NET_SSL_SSL_CONFIG_H_ |
| OLD | NEW |