Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1405956 - wget calls gnutls_priority_set() multiple times
Summary: wget calls gnutls_priority_set() multiple times
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: wget
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Hozza
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-19 09:54 UTC by Nikos Mavrogiannopoulos
Modified: 2017-02-10 17:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-10 17:43:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikos Mavrogiannopoulos 2016-12-19 09:54:51 UTC
Description of problem:
wget in src/gnutls.c calls gnutls_set_default_priority (session) which sets the default cipher priorities according to the system policy. However, at the following lines it overwrites that policy in the switch (opt.secure_protocol).

In particular it enters:
    case secure_protocol_auto:
      err = gnutls_priority_set_direct (session, "NORMAL:%COMPAT:-VERS-SSL3.0", NULL);

That violates the Fedora system-wide policy, since it overwrites the default.

Comment 1 Nikos Mavrogiannopoulos 2016-12-19 10:08:24 UTC
This behaviors creates side effects in the end priority generated. One is described at:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/VP6URPLIMH5XARDTBBJKBOUVNIS5OLCH/

A work around (allowing multiple calls to these functions) can be applied in gnutls as well:
https://gitlab.com/gnutls/gnutls/merge_requests/195

Comment 2 Nikos Mavrogiannopoulos 2016-12-19 15:33:40 UTC
Posted upstream a possible patch: http://lists.gnu.org/archive/html/bug-wget/2016-12/msg00018.html


Note You need to log in before you can comment on or make changes to this bug.