Fossil SCM

Amend the previous commit not to break (test) builds with SSL/TLS disabled.

florian 2024-11-13 07:20 trunk
Commit aa0b696ea36f33972bc388c9ae0d10c56649d1576b402fa4a182d1caaa6d8443
1 file changed +2
+2
--- src/http.c
+++ src/http.c
@@ -785,11 +785,13 @@
785785
zMimetype = find_option("mimetype",0,1);
786786
zOutFile = find_option("out","o",1);
787787
if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
788788
if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
789789
if( find_option("no-cert-verify",0,0)!=0 ){
790
+ #ifdef FOSSIL_ENABLE_SSL
790791
ssl_disable_cert_verification();
792
+ #endif
791793
}
792794
if( find_option("xfer",0,0)!=0 ){
793795
mHttpFlags |= HTTP_USE_LOGIN;
794796
mHttpFlags &= ~HTTP_GENERIC;
795797
}
796798
--- src/http.c
+++ src/http.c
@@ -785,11 +785,13 @@
785 zMimetype = find_option("mimetype",0,1);
786 zOutFile = find_option("out","o",1);
787 if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
788 if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
789 if( find_option("no-cert-verify",0,0)!=0 ){
 
790 ssl_disable_cert_verification();
 
791 }
792 if( find_option("xfer",0,0)!=0 ){
793 mHttpFlags |= HTTP_USE_LOGIN;
794 mHttpFlags &= ~HTTP_GENERIC;
795 }
796
--- src/http.c
+++ src/http.c
@@ -785,11 +785,13 @@
785 zMimetype = find_option("mimetype",0,1);
786 zOutFile = find_option("out","o",1);
787 if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE;
788 if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS;
789 if( find_option("no-cert-verify",0,0)!=0 ){
790 #ifdef FOSSIL_ENABLE_SSL
791 ssl_disable_cert_verification();
792 #endif
793 }
794 if( find_option("xfer",0,0)!=0 ){
795 mHttpFlags |= HTTP_USE_LOGIN;
796 mHttpFlags &= ~HTTP_GENERIC;
797 }
798

Keyboard Shortcuts

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