aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-09-13 14:56:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-09-13 14:56:27 +0200
commit8250f93d413eaff47d8e2ac0284059afa92dcea4 (patch)
treeeb9c571884789db72883a8c29ab80bbb180b9881 /lib/vtls
parent7d9bef9286cd8efbed032d41a36e82d1c44058a7 (diff)
CURLOPT_CAPATH: return failure if set without backend support
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/openssl.h3
-rw-r--r--lib/vtls/polarssl.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/vtls/openssl.h b/lib/vtls/openssl.h
index 1a55ffc2f..6d6c75c82 100644
--- a/lib/vtls/openssl.h
+++ b/lib/vtls/openssl.h
@@ -76,6 +76,9 @@ void Curl_ossl_md5sum(unsigned char *tmp, /* input */
/* this backend provides these functions: */
#define have_curlssl_md5sum 1
+/* this backend supports the CAPATH option */
+#define have_ca_path 1
+
/* API setup for OpenSSL */
#define curlssl_init Curl_ossl_init
#define curlssl_cleanup Curl_ossl_cleanup
diff --git a/lib/vtls/polarssl.h b/lib/vtls/polarssl.h
index 9ab7e47e5..dbe01966f 100644
--- a/lib/vtls/polarssl.h
+++ b/lib/vtls/polarssl.h
@@ -8,6 +8,7 @@
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2010, Hoi-Ho Chan, <hoiho.chan@gmail.com>
+ * Copyright (C) 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -47,6 +48,9 @@ void Curl_polarssl_session_free(void *ptr);
size_t Curl_polarssl_version(char *buffer, size_t size);
int Curl_polarssl_shutdown(struct connectdata *conn, int sockindex);
+/* this backend supports the CAPATH option */
+#define have_ca_path 1
+
/* API setup for PolarSSL */
#define curlssl_init() polarssl_init()
#define curlssl_cleanup() polarssl_cleanup()