Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: net/ssl/ssl_cipher_suite_names.h

Issue 2349713004: Replace key_exchange_info with key_exchange_group. (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698