mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Initialize SSL only the first time when an SSL URL is encountered.
This commit is contained in:
parent
ddd2644bc8
commit
63d492c0ba
@ -1,3 +1,8 @@
|
|||||||
|
2003-11-29 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* http.c (gethttp): Initialize SSL only the first time when SSL
|
||||||
|
URL is downloaded.
|
||||||
|
|
||||||
2003-11-29 Hrvoje Niksic <hniksic@xemacs.org>
|
2003-11-29 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* cookies.c (cookie_header): Only generate the contents of the
|
* cookies.c (cookie_header): Only generate the contents of the
|
||||||
|
@ -1033,8 +1033,10 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
int host_lookup_failed = 0;
|
int host_lookup_failed = 0;
|
||||||
|
|
||||||
#ifdef HAVE_SSL
|
#ifdef HAVE_SSL
|
||||||
/* Initialize the SSL context. After the first run, this is a
|
if (u->scheme == SCHEME_HTTPS)
|
||||||
no-op. */
|
{
|
||||||
|
/* Initialize the SSL context. After this has once been done,
|
||||||
|
it becomes a no-op. */
|
||||||
switch (ssl_init ())
|
switch (ssl_init ())
|
||||||
{
|
{
|
||||||
case SSLERRCTXCREATE:
|
case SSLERRCTXCREATE:
|
||||||
@ -1059,6 +1061,7 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif /* HAVE_SSL */
|
#endif /* HAVE_SSL */
|
||||||
|
|
||||||
if (!(*dt & HEAD_ONLY))
|
if (!(*dt & HEAD_ONLY))
|
||||||
|
Loading…
Reference in New Issue
Block a user