Bug 1179314

Summary: Utilize system-wide crypto-policies
Product: [Fedora] Fedora Reporter: Nikos Mavrogiannopoulos <nmavrogi>
Component: libmicrohttpdAssignee: Tim Niemueller <tim>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: lnykryn, tim, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libmicrohttpd-0.9.39-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-21 04:55:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1179209, 1179344    
Attachments:
Description Flags
patch to utilize @SYSTEM none

Description Nikos Mavrogiannopoulos 2015-01-06 14:56:48 UTC
Please convert this application to use the system's crypto policy for SSL and TLS:
https://fedoraproject.org/wiki/Packaging:CryptoPolicies

If this program is compiled against gnutls, change the default priority string to be "@SYSTEM" or to use gnutls_set_default_priority().

If this program is compiled against openssl, and there is no default cipher list specified, you don't need to modify it. Otherwise replace the default cipher list with "PROFILE=SYSTEM".

In both cases please verify that the application uses the system's crypto policies.

If the package is already using the system-wide crypto policies, or it does not use SSL or TLS, no action is required, the bug can simply be closed.

Comment 1 Zbigniew Jędrzejewski-Szmek 2015-03-13 14:52:47 UTC
Created attachment 1001405 [details]
patch to utilize @SYSTEM

Comment 2 Nikos Mavrogiannopoulos 2015-03-13 14:56:06 UTC
An other approach which could also be sent upstream is to use:
gnutls_set_default_priority(session)

That way it avoids being Fedora-specific.

Comment 3 Zbigniew Jędrzejewski-Szmek 2015-03-13 14:59:31 UTC
Can you expand on that? At what point does this call need to happen? IIUC, gnutls_set_default_priority has to be called for each session separately. For a consumer of the µhttp library like systemd-journal-remote this is more complicated.

Comment 4 Nikos Mavrogiannopoulos 2015-03-13 15:06:02 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #3)
> Can you expand on that? At what point does this call need to happen? IIUC,
> gnutls_set_default_priority has to be called for each session separately.

You're right... Ignore my comment.

Comment 5 Fedora Update System 2015-03-16 15:42:00 UTC
libmicrohttpd-0.9.39-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/libmicrohttpd-0.9.39-2.fc22

Comment 6 Fedora Update System 2015-03-16 17:35:32 UTC
libmicrohttpd-0.9.39-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/libmicrohttpd-0.9.39-2.fc21

Comment 7 Fedora Update System 2015-03-18 10:22:43 UTC
Package libmicrohttpd-0.9.39-2.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing libmicrohttpd-0.9.39-2.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4035/libmicrohttpd-0.9.39-2.fc21
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2015-03-21 04:55:03 UTC
libmicrohttpd-0.9.39-2.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-03-29 04:27:07 UTC
libmicrohttpd-0.9.39-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.