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

Unified Diff: net/ssl/ssl_cipher_suite_names.h

Issue 1313363003: Expose OpenSSL's key_exchange_info in the content API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper #ifdef fix Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/ssl_cipher_suite_names.h
diff --git a/net/ssl/ssl_cipher_suite_names.h b/net/ssl/ssl_cipher_suite_names.h
index f7aea964b916a1e8dd361f515d8330d27092430d..207dbfbb8ed632757f340501b8097bbbf0d87e96 100644
--- a/net/ssl/ssl_cipher_suite_names.h
+++ b/net/ssl/ssl_cipher_suite_names.h
@@ -60,6 +60,11 @@ NET_EXPORT bool IsSecureTLSCipherSuite(uint16 cipher_suite);
// Returns true if |cipher_suite| is suitable for use with False Start.
NET_EXPORT bool IsFalseStartableTLSCipherSuite(uint16 cipher_suite);
+// Returns the static curve name of |key_exchange_info| if the |cipher_suite|
+// is an elliptic curve, and a name is known. Returns nullptr otherwise.
+// Only defined for OpenSSL, returns nullptr otherwise.
+NET_EXPORT const char* ECCurveName(uint16 cipher_suite, int key_exchange_info);
+
} // namespace net
#endif // NET_SSL_SSL_CIPHER_SUITE_NAMES_H_
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | net/ssl/ssl_cipher_suite_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698