mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Tell OpenSSL to renegotiate automatically (mode SSL_MODE_AUTO_RETRY).
By Jeremy Shapiro.
This commit is contained in:
parent
335f7a4f92
commit
9aae245890
@ -1,3 +1,7 @@
|
||||
2005-08-26 Jeremy Shapiro <jnshapiro@gmail.com>
|
||||
|
||||
* openssl.c (ssl_init): Set SSL_MODE_AUTO_RETRY.
|
||||
|
||||
2005-08-23 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* host.c (address_list_from_ipv4_addresses): Use IP_INADDR_DATA.
|
||||
|
@ -1940,9 +1940,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
||||
else
|
||||
fp = output_stream;
|
||||
|
||||
/* #### This confuses the timestamping code that checks for file
|
||||
size. Maybe we should save some additional information? */
|
||||
if (opt.save_headers)
|
||||
/* This confuses the timestamping code that checks for file size.
|
||||
#### The timestamping code should be smarter about file size. */
|
||||
if (opt.save_headers && hs->restval == 0)
|
||||
fwrite (head, 1, strlen (head), fp);
|
||||
|
||||
/* Now we no longer need to store the response header. */
|
||||
|
@ -225,6 +225,10 @@ ssl_init ()
|
||||
handles them correctly), allow them in OpenSSL. */
|
||||
SSL_CTX_set_mode (ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
|
||||
|
||||
/* The OpenSSL library can handle renegotiations automatically, so
|
||||
tell it to do so. */
|
||||
SSL_CTX_set_mode (ssl_ctx, SSL_MODE_AUTO_RETRY);
|
||||
|
||||
return true;
|
||||
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user