From 7494f0f4981b2ccb55f1fc5aecad383a0d9a8569 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 13 Sep 2014 15:11:26 +0200 Subject: vtls: have the backend tell if it supports CERTINFO --- lib/url.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index b4d4a3919..3e90d4e30 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1977,12 +1977,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, data->set.ssl.fsslctxp = va_arg(param, void *); break; #endif -#if defined(USE_SSLEAY) || defined(USE_QSOSSL) || defined(USE_GSKIT) || \ - defined(USE_NSS) case CURLOPT_CERTINFO: +#ifdef have_curlssl_certinfo data->set.ssl.certinfo = (0 != va_arg(param, long))?TRUE:FALSE; - break; +#else + result = CURLE_NOT_BUILT_IN; #endif + break; case CURLOPT_CAINFO: /* * Set CA info for SSL connection. Specify file name of the CA certificate -- cgit v1.2.3