mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
PFS runtime check
This commit is contained in:
parent
eaf2fc9a4f
commit
e1fc2057c7
@ -1,3 +1,9 @@
|
|||||||
|
2013-09-07 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
|
* gnutls.c (ssl_connect_wget): use gnutls_check_version()
|
||||||
|
to check if option "PFS" is available
|
||||||
|
Reported by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||||
|
|
||||||
2013-09-03 Tim Ruehsen <tim.ruehsen@gmx.de>
|
2013-09-03 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
* main.c: Add new value 'PFS' to --secure-protocol to
|
* main.c: Add new value 'PFS' to --secure-protocol to
|
||||||
|
@ -443,11 +443,10 @@ ssl_connect_wget (int fd, const char *hostname)
|
|||||||
err = gnutls_priority_set_direct (session, "NORMAL:-VERS-SSL3.0", NULL);
|
err = gnutls_priority_set_direct (session, "NORMAL:-VERS-SSL3.0", NULL);
|
||||||
break;
|
break;
|
||||||
case secure_protocol_pfs:
|
case secure_protocol_pfs:
|
||||||
#if defined (GNUTLS_VERSION_NUMBER) && GNUTLS_VERSION_NUMBER >= 0x030204
|
if (gnutls_check_version("3.2.4"))
|
||||||
err = gnutls_priority_set_direct (session, "PFS", NULL);
|
err = gnutls_priority_set_direct (session, "PFS", NULL);
|
||||||
#else
|
else
|
||||||
err = gnutls_priority_set_direct (session, "NORMAL:-RSA", NULL);
|
err = gnutls_priority_set_direct (session, "NORMAL:-RSA", NULL);
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
abort ();
|
abort ();
|
||||||
|
Loading…
Reference in New Issue
Block a user