Fossil SCM
Amend the previous commit not to break (test) builds with SSL/TLS disabled.
Commit
aa0b696ea36f33972bc388c9ae0d10c56649d1576b402fa4a182d1caaa6d8443
Parent
3380c7fef19f24a…
1 file changed
+2
+2
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -785,11 +785,13 @@ | ||
| 785 | 785 | zMimetype = find_option("mimetype",0,1); |
| 786 | 786 | zOutFile = find_option("out","o",1); |
| 787 | 787 | if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE; |
| 788 | 788 | if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS; |
| 789 | 789 | if( find_option("no-cert-verify",0,0)!=0 ){ |
| 790 | + #ifdef FOSSIL_ENABLE_SSL | |
| 790 | 791 | ssl_disable_cert_verification(); |
| 792 | + #endif | |
| 791 | 793 | } |
| 792 | 794 | if( find_option("xfer",0,0)!=0 ){ |
| 793 | 795 | mHttpFlags |= HTTP_USE_LOGIN; |
| 794 | 796 | mHttpFlags &= ~HTTP_GENERIC; |
| 795 | 797 | } |
| 796 | 798 |
| --- 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 |