]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vquic-tls: fix the error code returned for bad CA file
authorJay Satiro <raysatiro@yahoo.com>
Wed, 13 Mar 2024 06:03:18 +0000 (02:03 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 13 Mar 2024 06:03:18 +0000 (02:03 -0400)
- Return CURLE_SSL_CACERT_BADFILE if wolfSSL encounters a problem
  reading the cert file or path.

This is a follow-up to the parent commit aedbbdf1.

Reported-by: Karthikdasari0423@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/13115

lib/vquic/vquic-tls.c

index dbde21f476f1dc52c68b367f89405a30987268ad..ecba607a9ff3f1b3df275bd50a6f6e0f25d976ad 100644 (file)
@@ -417,7 +417,7 @@ static CURLcode curl_wssl_init_ctx(struct quic_tls_ctx *ctx,
               "  CAfile: %s CApath: %s",
               ssl_cafile ? ssl_cafile : "none",
               ssl_capath ? ssl_capath : "none");
-        result = CURLE_SSL_CACERT;
+        result = CURLE_SSL_CACERT_BADFILE;
         goto out;
       }
       infof(data, " CAfile: %s", ssl_cafile ? ssl_cafile : "none");