vtls: have the backend tell if it supports CERTINFO
This commit is contained in:
parent
4da70dea28
commit
7494f0f498
@ -1977,12 +1977,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
|
|||||||
data->set.ssl.fsslctxp = va_arg(param, void *);
|
data->set.ssl.fsslctxp = va_arg(param, void *);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if defined(USE_SSLEAY) || defined(USE_QSOSSL) || defined(USE_GSKIT) || \
|
|
||||||
defined(USE_NSS)
|
|
||||||
case CURLOPT_CERTINFO:
|
case CURLOPT_CERTINFO:
|
||||||
|
#ifdef have_curlssl_certinfo
|
||||||
data->set.ssl.certinfo = (0 != va_arg(param, long))?TRUE:FALSE;
|
data->set.ssl.certinfo = (0 != va_arg(param, long))?TRUE:FALSE;
|
||||||
break;
|
#else
|
||||||
|
result = CURLE_NOT_BUILT_IN;
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
case CURLOPT_CAINFO:
|
case CURLOPT_CAINFO:
|
||||||
/*
|
/*
|
||||||
* Set CA info for SSL connection. Specify file name of the CA certificate
|
* Set CA info for SSL connection. Specify file name of the CA certificate
|
||||||
|
@ -42,6 +42,9 @@ int Curl_gskit_shutdown(struct connectdata * conn, int sockindex);
|
|||||||
size_t Curl_gskit_version(char * buffer, size_t size);
|
size_t Curl_gskit_version(char * buffer, size_t size);
|
||||||
int Curl_gskit_check_cxn(struct connectdata * cxn);
|
int Curl_gskit_check_cxn(struct connectdata * cxn);
|
||||||
|
|
||||||
|
/* this backend supports CURLOPT_CERTINFO */
|
||||||
|
#define have_curlssl_certinfo 1
|
||||||
|
|
||||||
/* API setup for GSKit */
|
/* API setup for GSKit */
|
||||||
#define curlssl_init Curl_gskit_init
|
#define curlssl_init Curl_gskit_init
|
||||||
#define curlssl_cleanup Curl_gskit_cleanup
|
#define curlssl_cleanup Curl_gskit_cleanup
|
||||||
|
@ -63,6 +63,9 @@ void Curl_nss_md5sum(unsigned char *tmp, /* input */
|
|||||||
/* this backend provides these functions: */
|
/* this backend provides these functions: */
|
||||||
#define have_curlssl_md5sum 1
|
#define have_curlssl_md5sum 1
|
||||||
|
|
||||||
|
/* this backend supports CURLOPT_CERTINFO */
|
||||||
|
#define have_curlssl_certinfo 1
|
||||||
|
|
||||||
/* API setup for NSS */
|
/* API setup for NSS */
|
||||||
#define curlssl_init Curl_nss_init
|
#define curlssl_init Curl_nss_init
|
||||||
#define curlssl_cleanup Curl_nss_cleanup
|
#define curlssl_cleanup Curl_nss_cleanup
|
||||||
|
@ -79,6 +79,9 @@ void Curl_ossl_md5sum(unsigned char *tmp, /* input */
|
|||||||
/* this backend supports the CAPATH option */
|
/* this backend supports the CAPATH option */
|
||||||
#define have_ca_path 1
|
#define have_ca_path 1
|
||||||
|
|
||||||
|
/* this backend supports CURLOPT_CERTINFO */
|
||||||
|
#define have_curlssl_certinfo 1
|
||||||
|
|
||||||
/* API setup for OpenSSL */
|
/* API setup for OpenSSL */
|
||||||
#define curlssl_init Curl_ossl_init
|
#define curlssl_init Curl_ossl_init
|
||||||
#define curlssl_cleanup Curl_ossl_cleanup
|
#define curlssl_cleanup Curl_ossl_cleanup
|
||||||
|
@ -40,6 +40,9 @@ int Curl_qsossl_shutdown(struct connectdata * conn, int sockindex);
|
|||||||
size_t Curl_qsossl_version(char * buffer, size_t size);
|
size_t Curl_qsossl_version(char * buffer, size_t size);
|
||||||
int Curl_qsossl_check_cxn(struct connectdata * cxn);
|
int Curl_qsossl_check_cxn(struct connectdata * cxn);
|
||||||
|
|
||||||
|
/* this backend supports CURLOPT_CERTINFO */
|
||||||
|
#define have_curlssl_certinfo 1
|
||||||
|
|
||||||
/* API setup for QsoSSL */
|
/* API setup for QsoSSL */
|
||||||
#define curlssl_init Curl_qsossl_init
|
#define curlssl_init Curl_qsossl_init
|
||||||
#define curlssl_cleanup Curl_qsossl_cleanup
|
#define curlssl_cleanup Curl_qsossl_cleanup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user