diff options
author | Kenny Root <kroot@google.com> | 2013-06-26 15:01:47 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-06-26 15:01:47 -0700 |
commit | 7969f7200130a00ea0baf68d16f177b5fcb05a67 (patch) | |
tree | 605882e17f05a0eb06c3df05aef23e0ad426188a | |
parent | 84e8ef1d129ace1b1300efc836f7aa672cb71c05 (diff) | |
download | wpa_supplicant_6-7969f7200130a00ea0baf68d16f177b5fcb05a67.tar.gz |
Remove obsolete keystore path
It's not possible to get a raw private key from keystore anymore, so
this would fail every time anyway. Remove it so it doesn't confuse
anyone that looks at this code.
Change-Id: I36c2d18e63e8ef34938925f1b702a6c246fd0dff
-rw-r--r-- | wpa_supplicant/src/crypto/tls_openssl.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/wpa_supplicant/src/crypto/tls_openssl.c b/wpa_supplicant/src/crypto/tls_openssl.c index 3e5d8ca..f0c63d5 100644 --- a/wpa_supplicant/src/crypto/tls_openssl.c +++ b/wpa_supplicant/src/crypto/tls_openssl.c @@ -1754,23 +1754,6 @@ static int tls_connection_private_key(void *_ssl_ctx, break; } -#ifdef ANDROID - if (!ok && private_key && strncmp("keystore://", private_key, 11) == 0) { - BIO *bio = BIO_from_keystore(&private_key[11]); - EVP_PKEY *pkey = NULL; - if (bio) { - pkey = PEM_read_bio_PrivateKey(bio, NULL, NULL, NULL); - BIO_free(bio); - } - if (pkey) { - if (SSL_use_PrivateKey(conn->ssl, pkey) == 1) { - ok = 1; - } - EVP_PKEY_free(pkey); - } - } -#endif - while (!ok && private_key) { #ifndef OPENSSL_NO_STDIO if (SSL_use_PrivateKey_file(conn->ssl, private_key, |