Fossil SCM
Add the --no-cert-verify option to the test-httpmsg command.
Commit
5a6fd8820c7f33e867a3bfbfc0be389ca92d49141c5915e64eb00e37283c9011
Parent
28ea88e77039030…
1 file changed
+4
+4
| --- src/http.c | ||
| +++ src/http.c | ||
| @@ -768,10 +768,11 @@ | ||
| 768 | 768 | ** a GET request where there is no PAYLOAD. |
| 769 | 769 | ** |
| 770 | 770 | ** Options: |
| 771 | 771 | ** --compress Use ZLIB compression on the payload |
| 772 | 772 | ** --mimetype TYPE Mimetype of the payload |
| 773 | +** --no-cert-verify Disable TLS cert verification | |
| 773 | 774 | ** --out FILE Store the reply in FILE |
| 774 | 775 | ** -v Verbose output |
| 775 | 776 | ** --xfer PAYLOAD in a Fossil xfer protocol message |
| 776 | 777 | */ |
| 777 | 778 | void test_httpmsg_command(void){ |
| @@ -783,10 +784,13 @@ | ||
| 783 | 784 | |
| 784 | 785 | zMimetype = find_option("mimetype",0,1); |
| 785 | 786 | zOutFile = find_option("out","o",1); |
| 786 | 787 | if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE; |
| 787 | 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 | + } | |
| 788 | 792 | if( find_option("xfer",0,0)!=0 ){ |
| 789 | 793 | mHttpFlags |= HTTP_USE_LOGIN; |
| 790 | 794 | mHttpFlags &= ~HTTP_GENERIC; |
| 791 | 795 | } |
| 792 | 796 | verify_all_options(); |
| 793 | 797 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -768,10 +768,11 @@ | |
| 768 | ** a GET request where there is no PAYLOAD. |
| 769 | ** |
| 770 | ** Options: |
| 771 | ** --compress Use ZLIB compression on the payload |
| 772 | ** --mimetype TYPE Mimetype of the payload |
| 773 | ** --out FILE Store the reply in FILE |
| 774 | ** -v Verbose output |
| 775 | ** --xfer PAYLOAD in a Fossil xfer protocol message |
| 776 | */ |
| 777 | void test_httpmsg_command(void){ |
| @@ -783,10 +784,13 @@ | |
| 783 | |
| 784 | zMimetype = find_option("mimetype",0,1); |
| 785 | zOutFile = find_option("out","o",1); |
| 786 | if( find_option("verbose","v",0)!=0 ) mHttpFlags |= HTTP_VERBOSE; |
| 787 | if( find_option("compress",0,0)!=0 ) mHttpFlags &= ~HTTP_NOCOMPRESS; |
| 788 | if( find_option("xfer",0,0)!=0 ){ |
| 789 | mHttpFlags |= HTTP_USE_LOGIN; |
| 790 | mHttpFlags &= ~HTTP_GENERIC; |
| 791 | } |
| 792 | verify_all_options(); |
| 793 |
| --- src/http.c | |
| +++ src/http.c | |
| @@ -768,10 +768,11 @@ | |
| 768 | ** a GET request where there is no PAYLOAD. |
| 769 | ** |
| 770 | ** Options: |
| 771 | ** --compress Use ZLIB compression on the payload |
| 772 | ** --mimetype TYPE Mimetype of the payload |
| 773 | ** --no-cert-verify Disable TLS cert verification |
| 774 | ** --out FILE Store the reply in FILE |
| 775 | ** -v Verbose output |
| 776 | ** --xfer PAYLOAD in a Fossil xfer protocol message |
| 777 | */ |
| 778 | void test_httpmsg_command(void){ |
| @@ -783,10 +784,13 @@ | |
| 784 | |
| 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 | verify_all_options(); |
| 797 |