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.
Commit
5d993d54394bcff73ccd984db064f4bd7f5b12d2ebecb2987aea44057052871a
Parent
de6a059493bdc12…
1 file changed
+1
-1
+1
-1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -320,11 +320,11 @@ | ||
| 320 | 320 | ** to be available: `no-autoalginit', `no-winstore'. The Fossil makefiles do not |
| 321 | 321 | ** currently set these options when building OpenSSL for Windows. */ |
| 322 | 322 | #if defined(_WIN32) |
| 323 | 323 | #if OPENSSL_VERSION_NUMBER >= 0x030200000 |
| 324 | 324 | 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"); | |
| 326 | 326 | } |
| 327 | 327 | #endif /* OPENSSL_VERSION_NUMBER >= 0x030200000 */ |
| 328 | 328 | #endif /* _WIN32 */ |
| 329 | 329 | |
| 330 | 330 | /* Load client SSL identity, preferring the filename specified on the |
| 331 | 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 | 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 |