diff options
author | MAntoniak <47522782+MAntoniak@users.noreply.github.com> | 2022-01-11 19:09:06 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-12 09:34:09 +0100 |
commit | 44dfd6bdd83d2907b5c85af01ece515c9189081d (patch) | |
tree | ddb7fecda53e262143edd9578f9a56ffe29309b8 /lib | |
parent | cb0c7970f006fd678b13cf6ee8ded12bad453194 (diff) | |
download | curl-44dfd6bdd83d2907b5c85af01ece515c9189081d.tar.gz |
mbedtls: return CURLcode result instead of a mbedtls error code
... when a certificate fails to be loaded from a blob
Closes #8266
Diffstat (limited to 'lib')
-rw-r--r-- | lib/vtls/mbedtls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c index 6f6b11ff6..2d0e875e4 100644 --- a/lib/vtls/mbedtls.c +++ b/lib/vtls/mbedtls.c @@ -335,7 +335,7 @@ mbed_connect_step1(struct Curl_easy *data, struct connectdata *conn, mbedtls_strerror(ret, errorbuf, sizeof(errorbuf)); failf(data, "Error importing ca cert blob - mbedTLS: (-0x%04X) %s", -ret, errorbuf); - return ret; + return CURLE_SSL_CERTPROBLEM; } } |