From 181f5f3369ba35d25ee77d5e2fb253cd8650d921 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Wed, 13 Mar 2024 02:03:18 -0400 Subject: [PATCH] vquic-tls: fix the error code returned for bad CA file - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vquic/vquic-tls.c b/lib/vquic/vquic-tls.c index dbde21f476..ecba607a9f 100644 --- a/lib/vquic/vquic-tls.c +++ b/lib/vquic/vquic-tls.c @@ -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"); -- 2.47.3