]> granicus.if.org Git - curl/commitdiff
mbedtls: enable CA path processing
authorJay Satiro <raysatiro@yahoo.com>
Sun, 10 Sep 2017 07:22:05 +0000 (03:22 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 10 Sep 2017 07:22:05 +0000 (03:22 -0400)
CA path processing was implemented when mbedtls.c was added to libcurl
in fe7590f, but it was never enabled.

Bug: https://github.com/curl/curl/issues/1877
Reported-by: SBKarr@users.noreply.github.com
docs/libcurl/opts/CURLOPT_CAPATH.3
docs/libcurl/opts/CURLOPT_PROXY_CAPATH.3
lib/vtls/mbedtls.c

index 32bd42d2a3d996740d091fa8856c1bac2a13e6fb..183428ffce07473fe5996aa32692c4d8135ab1ac 100644 (file)
@@ -54,8 +54,9 @@ if(curl) {
 }
 .fi
 .SH AVAILABILITY
-This option is supported by the OpenSSL, GnuTLS and PolarSSL backends. The NSS
-backend provides the option only for backward compatibility.
+This option is supported by the OpenSSL, GnuTLS, PolarSSL and mbedTLS
+(since 7.56.0) backends. The NSS backend provides the option only for
+backward compatibility.
 .SH RETURN VALUE
 CURLE_OK if supported; or an error such as:
 
index 4064dfd85f29043b0174b83863f55382560ca8d1..1e7345ed37b5c9ba7aff3737401c18b0722f2a97 100644 (file)
@@ -55,8 +55,9 @@ if(curl) {
 .SH AVAILABILITY
 Added in 7.52.0
 
-This option is supported by the OpenSSL, GnuTLS and PolarSSL backends. The NSS
-backend provides the option only for backward compatibility.
+This option is supported by the OpenSSL, GnuTLS, PolarSSL and mbedTLS
+(since 7.56.0) backends. The NSS backend provides the option only for
+backward compatibility.
 .SH RETURN VALUE
 CURLE_OK if supported; or an error such as:
 
index 9fc7bd2e141564254055e48bc4bc4d4949772493..262f7253126e8fc9a93fc19e2ee970738ea8fa55 100644 (file)
@@ -1042,7 +1042,7 @@ static void *Curl_mbedtls_get_internals(struct ssl_connect_data *connssl,
 const struct Curl_ssl Curl_ssl_mbedtls = {
   { CURLSSLBACKEND_MBEDTLS, "mbedtls" }, /* info */
 
-  0, /* have_ca_path */
+  1, /* have_ca_path */
   0, /* have_certinfo */
   1, /* have_pinnedpubkey */
   1, /* have_ssl_ctx */