Fossil SCM
Wrap SSL-related features in FOSSIL_ENABLE_SSL conditional in url.c.
Commit
0a59a8234907421034e756d17cd233e6d8f65ca85fec0fe417f8daada25d607a
Parent
44ac944a981686f…
1 file changed
+2
+2
| --- src/url.c | ||
| +++ src/url.c | ||
| @@ -377,13 +377,15 @@ | ||
| 377 | 377 | */ |
| 378 | 378 | void url_proxy_options(void){ |
| 379 | 379 | zProxyOpt = find_option("proxy", 0, 1); |
| 380 | 380 | if( find_option("nosync",0,0) ) g.fNoSync = 1; |
| 381 | 381 | if( find_option("ipv4",0,0) ) g.fIPv4 = 1; |
| 382 | +#ifdef FOSSIL_ENABLE_SSL | |
| 382 | 383 | if( find_option("accept-any-cert",0,0) ){ |
| 383 | 384 | ssl_disable_cert_verification(); |
| 384 | 385 | } |
| 386 | +#endif /* FOSSIL_ENABLE_SSL */ | |
| 385 | 387 | } |
| 386 | 388 | |
| 387 | 389 | /* |
| 388 | 390 | ** If the "proxy" setting is defined, then change the URL settings |
| 389 | 391 | ** (initialized by a prior call to url_parse()) so that the HTTP |
| 390 | 392 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -377,13 +377,15 @@ | |
| 377 | */ |
| 378 | void url_proxy_options(void){ |
| 379 | zProxyOpt = find_option("proxy", 0, 1); |
| 380 | if( find_option("nosync",0,0) ) g.fNoSync = 1; |
| 381 | if( find_option("ipv4",0,0) ) g.fIPv4 = 1; |
| 382 | if( find_option("accept-any-cert",0,0) ){ |
| 383 | ssl_disable_cert_verification(); |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | /* |
| 388 | ** If the "proxy" setting is defined, then change the URL settings |
| 389 | ** (initialized by a prior call to url_parse()) so that the HTTP |
| 390 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -377,13 +377,15 @@ | |
| 377 | */ |
| 378 | void url_proxy_options(void){ |
| 379 | zProxyOpt = find_option("proxy", 0, 1); |
| 380 | if( find_option("nosync",0,0) ) g.fNoSync = 1; |
| 381 | if( find_option("ipv4",0,0) ) g.fIPv4 = 1; |
| 382 | #ifdef FOSSIL_ENABLE_SSL |
| 383 | if( find_option("accept-any-cert",0,0) ){ |
| 384 | ssl_disable_cert_verification(); |
| 385 | } |
| 386 | #endif /* FOSSIL_ENABLE_SSL */ |
| 387 | } |
| 388 | |
| 389 | /* |
| 390 | ** If the "proxy" setting is defined, then change the URL settings |
| 391 | ** (initialized by a prior call to url_parse()) so that the HTTP |
| 392 |