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

Unified Diff: net/socket/ssl_client_socket_openssl.cc

Issue 415853002: Switch to using SSL_get0_certificate_types for client auth. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/ssl_client_socket_openssl.cc
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc
index 1c00180be94ca7866754dd231994f163c916fc20..ba3c5dff13936bd007399dcdf5bc9d69301e01ae 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -1339,9 +1339,8 @@ int SSLClientSocketOpenSSL::ClientCertRequestCallback(SSL* ssl,
}
const unsigned char* client_cert_types;
- size_t num_client_cert_types;
- SSL_get_client_certificate_types(ssl, &client_cert_types,
- &num_client_cert_types);
+ size_t num_client_cert_types =
+ SSL_get0_certificate_types(ssl, &client_cert_types);
davidben 2014/07/23 23:27:55 Even though this is upstream's API, it does have t
for (size_t i = 0; i < num_client_cert_types; i++) {
cert_key_types_.push_back(
static_cast<SSLClientCertType>(client_cert_types[i]));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698