Fossil SCM

Wrap SSL-related features in FOSSIL_ENABLE_SSL conditional in url.c.

ashepilko 2020-05-03 17:46 trunk
Commit 0a59a8234907421034e756d17cd233e6d8f65ca85fec0fe417f8daada25d607a
1 file changed +2
+2
--- src/url.c
+++ src/url.c
@@ -377,13 +377,15 @@
377377
*/
378378
void url_proxy_options(void){
379379
zProxyOpt = find_option("proxy", 0, 1);
380380
if( find_option("nosync",0,0) ) g.fNoSync = 1;
381381
if( find_option("ipv4",0,0) ) g.fIPv4 = 1;
382
+#ifdef FOSSIL_ENABLE_SSL
382383
if( find_option("accept-any-cert",0,0) ){
383384
ssl_disable_cert_verification();
384385
}
386
+#endif /* FOSSIL_ENABLE_SSL */
385387
}
386388
387389
/*
388390
** If the "proxy" setting is defined, then change the URL settings
389391
** (initialized by a prior call to url_parse()) so that the HTTP
390392
--- 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

Keyboard Shortcuts

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