diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 00:02:17 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 00:02:17 +0200 |
commit | fc16d9cec8b013a5f1a6fbe69abe781b1dd8c0e5 (patch) | |
tree | ee41888d5c2bc5f4f6ca32bb9241644325c953b9 /lib | |
parent | 7c17b58eec102b8a97908cc8a62432a8adcb5db2 (diff) |
openssl: remove dummy callback use from SSL_CTX_set_verify()
The existing callback served no purpose.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/openssl.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index eb2cf5bf5..240295b6f 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -716,17 +716,6 @@ static int x509_name_oneline(X509_NAME *a, char *buf, size_t size) #endif } -static -int cert_verify_callback(int ok, X509_STORE_CTX *ctx) -{ - X509 *err_cert; - char buf[256]; - - err_cert=X509_STORE_CTX_get_current_cert(ctx); - (void)x509_name_oneline(X509_get_subject_name(err_cert), buf, sizeof(buf)); - return ok; -} - /* Return error string for last OpenSSL error */ static char *SSL_strerror(unsigned long error, char *buf, size_t size) @@ -2079,7 +2068,7 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex) * SSL_get_verify_result() below. */ SSL_CTX_set_verify(connssl->ctx, data->set.ssl.verifypeer?SSL_VERIFY_PEER:SSL_VERIFY_NONE, - cert_verify_callback); + NULL); /* give application a chance to interfere with SSL set up. */ if(data->set.ssl.fsslctx) { |