From af917cc55e6756a2b714fa39b6d66bc63251fce6 Mon Sep 17 00:00:00 2001 From: Hideki Miyazaki Date: Fri, 28 May 2021 11:05:40 +0900 Subject: [PATCH] tell error code --- src/ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 5c7d845c4..d64ee1d80 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -6895,6 +6895,10 @@ int wolfSSL_CTX_load_verify_locations_ex(WOLFSSL_CTX* ctx, const char* file, /* pass directory read failure to response code */ if (fileRet != WC_READDIR_NOFILE) { ret = fileRet; + #if defined(WOLFSSL_QT) + /* qssl socket wants to know errors. */ + WOLFSSL_ERROR(ret); + #endif } /* report failure if no files were loaded or there were failures */ else if (successCount == 0 || failCount > 0) {