1
0
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:
hniksic 2005-08-26 03:42:31 -07:00
parent 335f7a4f92
commit 9aae245890
3 changed files with 11 additions and 3 deletions

View File

@ -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> 2005-08-23 Hrvoje Niksic <hniksic@xemacs.org>
* host.c (address_list_from_ipv4_addresses): Use IP_INADDR_DATA. * host.c (address_list_from_ipv4_addresses): Use IP_INADDR_DATA.

View File

@ -1940,9 +1940,9 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
else else
fp = output_stream; fp = output_stream;
/* #### This confuses the timestamping code that checks for file /* This confuses the timestamping code that checks for file size.
size. Maybe we should save some additional information? */ #### The timestamping code should be smarter about file size. */
if (opt.save_headers) if (opt.save_headers && hs->restval == 0)
fwrite (head, 1, strlen (head), fp); fwrite (head, 1, strlen (head), fp);
/* Now we no longer need to store the response header. */ /* Now we no longer need to store the response header. */

View File

@ -225,6 +225,10 @@ ssl_init ()
handles them correctly), allow them in OpenSSL. */ handles them correctly), allow them in OpenSSL. */
SSL_CTX_set_mode (ssl_ctx, SSL_MODE_ENABLE_PARTIAL_WRITE); 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; return true;
error: error: