]> granicus.if.org Git - curl/commitdiff
openssl: Fixed Curl_ossl_cert_status_request() not returning FALSE
authorSteve Holme <steve_holme@hotmail.com>
Tue, 27 Jan 2015 11:55:19 +0000 (11:55 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 27 Jan 2015 12:53:41 +0000 (12:53 +0000)
Modified the Curl_ossl_cert_status_request() function to return FALSE
when built with BoringSSL or when OpenSSL is missing the necessary TLS
extensions.

lib/vtls/openssl.c

index fb19ab1aef581eac6446243996e3e4b88ce22488..e514e3270c12057310d2e119e83e2f69a4664f8e 100644 (file)
@@ -3202,6 +3202,10 @@ void Curl_ossl_md5sum(unsigned char *tmp, /* input */
 
 bool Curl_ossl_cert_status_request(void)
 {
+#if !defined(HAVE_BORINGSSL) && !defined(OPENSSL_NO_TLSEXT)
   return TRUE;
+#else
+  return FALSE;
+#endif
 }
 #endif /* USE_SSLEAY */