aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2026-04-24 08:43:59 +0100
committerRon Yorston <rmy@pobox.com>2026-04-24 08:43:59 +0100
commit47bc5ee4e1f1635360856be1025d50d3552e80e3 (patch)
tree9204d747038ee46d29746e946c7802a6eee3ae9e /include
parent0495eb5c75d62fc574a8c5477f9196f0917f723d (diff)
downloadbusybox-w32-47bc5ee4e1f1635360856be1025d50d3552e80e3.tar.gz
busybox-w32-47bc5ee4e1f1635360856be1025d50d3552e80e3.tar.bz2
busybox-w32-47bc5ee4e1f1635360856be1025d50d3552e80e3.zip
wget: allow HTTPS certificate check to be skipped
The Microsoft Windows Schannel implementation of TLS validates the server certificate. Enable the --no-check-certificate option to wget to allow these checks to be skipped. This may be useful to connect to badly configured websites. Adds 202 bytes to the x86_64 build with Schannel enabled. (GitHub issue #581)
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a73a04153..fdbab574d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1026,6 +1026,7 @@ typedef struct tls_state {
1026 char *hostname; 1026 char *hostname;
1027 SecPkgContext_StreamSizes stream_sizes; 1027 SecPkgContext_StreamSizes stream_sizes;
1028 bool initialized; 1028 bool initialized;
1029 bool no_check_cert;
1029 enum schannel_connection_state connection_state; 1030 enum schannel_connection_state connection_state;
1030} tls_state_t; 1031} tls_state_t;
1031#else 1032#else
@@ -1105,6 +1106,7 @@ void FAST_FUNC tls_handshake(tls_state_t *tls, const char *sni);
1105void FAST_FUNC tls_handshake_as_server(tls_state_t *tls, 1106void FAST_FUNC tls_handshake_as_server(tls_state_t *tls,
1106 const char *pem_filename); 1107 const char *pem_filename);
1107#define TLSLOOP_EXIT_ON_LOCAL_EOF (1 << 0) 1108#define TLSLOOP_EXIT_ON_LOCAL_EOF (1 << 0)
1109#define TLS_NO_CHECK_CERTIFICATE (1 << 1)
1108void tls_run_copy_loop(tls_state_t *tls, unsigned flags) FAST_FUNC; 1110void tls_run_copy_loop(tls_state_t *tls, unsigned flags) FAST_FUNC;
1109 1111
1110 1112