Fossil SCM

Reduce the WARNING that the Windows root certificates cannot be loaded to a NOTICE and output it on the same channel as the "Unable to verify SSL cert from ... accept this cert and continue (y/N/fingerprint)?" prompt.

florian 2024-07-15 10:41 trunk
Commit 5d993d54394bcff73ccd984db064f4bd7f5b12d2ebecb2987aea44057052871a
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -320,11 +320,11 @@
320320
** to be available: `no-autoalginit', `no-winstore'. The Fossil makefiles do not
321321
** currently set these options when building OpenSSL for Windows. */
322322
#if defined(_WIN32)
323323
#if OPENSSL_VERSION_NUMBER >= 0x030200000
324324
if( SSL_CTX_load_verify_store(sslCtx, "org.openssl.winstore:")==0 ){
325
- fprintf(stderr,"WARNING: Failed to load Windows root certificates.\n");
325
+ fossil_print("NOTICE: Failed to load the Windows root certificates.\n");
326326
}
327327
#endif /* OPENSSL_VERSION_NUMBER >= 0x030200000 */
328328
#endif /* _WIN32 */
329329
330330
/* Load client SSL identity, preferring the filename specified on the
331331
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -320,11 +320,11 @@
320 ** to be available: `no-autoalginit', `no-winstore'. The Fossil makefiles do not
321 ** currently set these options when building OpenSSL for Windows. */
322 #if defined(_WIN32)
323 #if OPENSSL_VERSION_NUMBER >= 0x030200000
324 if( SSL_CTX_load_verify_store(sslCtx, "org.openssl.winstore:")==0 ){
325 fprintf(stderr,"WARNING: Failed to load Windows root certificates.\n");
326 }
327 #endif /* OPENSSL_VERSION_NUMBER >= 0x030200000 */
328 #endif /* _WIN32 */
329
330 /* Load client SSL identity, preferring the filename specified on the
331
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -320,11 +320,11 @@
320 ** to be available: `no-autoalginit', `no-winstore'. The Fossil makefiles do not
321 ** currently set these options when building OpenSSL for Windows. */
322 #if defined(_WIN32)
323 #if OPENSSL_VERSION_NUMBER >= 0x030200000
324 if( SSL_CTX_load_verify_store(sslCtx, "org.openssl.winstore:")==0 ){
325 fossil_print("NOTICE: Failed to load the Windows root certificates.\n");
326 }
327 #endif /* OPENSSL_VERSION_NUMBER >= 0x030200000 */
328 #endif /* _WIN32 */
329
330 /* Load client SSL identity, preferring the filename specified on the
331

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button