diff options
Diffstat (limited to 'ustream-openssl.c')
-rw-r--r-- | ustream-openssl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ustream-openssl.c b/ustream-openssl.c index 9b4ac6c..1ce796a 100644 --- a/ustream-openssl.c +++ b/ustream-openssl.c @@ -247,8 +247,6 @@ static void ustream_ssl_error(struct ustream_ssl *us, int ret) uloop_timeout_set(&us->error_timer, 0); } -#ifndef NO_X509_CHECK_HOST - static bool ustream_ssl_verify_cn(struct ustream_ssl *us, X509 *cert) { int ret; @@ -264,8 +262,6 @@ static bool ustream_ssl_verify_cn(struct ustream_ssl *us, X509 *cert) return ret == 1; } -#endif - static void ustream_ssl_verify_cert(struct ustream_ssl *us) { void *ssl = us->ssl; @@ -284,9 +280,8 @@ static void ustream_ssl_verify_cert(struct ustream_ssl *us) return; us->valid_cert = true; -#ifndef NO_X509_CHECK_HOST us->valid_cn = ustream_ssl_verify_cn(us, cert); -#endif + X509_free(cert); } |