| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CIPHER_SUITE_NAMES_H_ | 5 #ifndef NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ |
| 6 #define NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ | 6 #define NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // - Protocol: less than TLS 1.2 | 66 // - Protocol: less than TLS 1.2 |
| 67 // - Key exchange: Does not use ECDHE-based key exchanges authenticated by a | 67 // - Key exchange: Does not use ECDHE-based key exchanges authenticated by a |
| 68 // certificate | 68 // certificate |
| 69 // - Cipher: not an AEAD cipher | 69 // - Cipher: not an AEAD cipher |
| 70 NET_EXPORT int ObsoleteSSLStatus(int connection_status); | 70 NET_EXPORT int ObsoleteSSLStatus(int connection_status); |
| 71 | 71 |
| 72 // Returns true if |cipher_suite| is suitable for use with HTTP/2. See | 72 // Returns true if |cipher_suite| is suitable for use with HTTP/2. See |
| 73 // https://http2.github.io/http2-spec/#rfc.section.9.2.2. | 73 // https://http2.github.io/http2-spec/#rfc.section.9.2.2. |
| 74 NET_EXPORT bool IsTLSCipherSuiteAllowedByHTTP2(uint16_t cipher_suite); | 74 NET_EXPORT bool IsTLSCipherSuiteAllowedByHTTP2(uint16_t cipher_suite); |
| 75 | 75 |
| 76 // Returns the static curve name of |key_exchange_info| if the |cipher_suite| | |
| 77 // is an elliptic curve, and a name is known. Returns nullptr otherwise. | |
| 78 // Only defined for OpenSSL, returns nullptr otherwise. | |
| 79 NET_EXPORT const char* ECCurveName(uint16_t cipher_suite, | |
| 80 int key_exchange_info); | |
| 81 | |
| 82 } // namespace net | 76 } // namespace net |
| 83 | 77 |
| 84 #endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ | 78 #endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_ |
| OLD | NEW |