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 1666852 - Apps using SSL_CTX_set_security_level with level >=3 don't work
Summary: Apps using SSL_CTX_set_security_level with level >=3 don't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openssl
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-16 18:39 UTC by Cristian Morales Vega
Modified: 2019-01-18 02:13 UTC (History)
2 users (show)

Fixed In Version: openssl-1.1.1a-1.fc29
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-18 02:13:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Cristian Morales Vega 2019-01-16 18:39:47 UTC
If SSL_CTX_set_security_level() is used with a level >= 3 in a client application the initial handshake fails with "no ciphers available".

I have been able to reproduce the issue with a raw checkout of the OpenSSL_1_1_1 git tag. The problem doesn't appear with the OpenSSL_1_1_1a tag.

To test you can apply this patch to s_client:

--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1749,6 +1749,8 @@ int s_client_main(int argc, char **argv)
         SSL_CTX_set_default_read_buffer_len(ctx, read_buf_len);
     }
 
+    SSL_CTX_set_security_level(ctx, 3);
+
     if (maxfraglen > 0
             && !SSL_CTX_set_tlsext_max_fragment_length(ctx, maxfraglen)) {
         BIO_printf(bio_err,

Comment 1 Fedora Update System 2019-01-17 07:16:50 UTC
openssl-1.1.1a-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-a8ffcff7ee

Comment 2 Fedora Update System 2019-01-18 02:13:54 UTC
openssl-1.1.1a-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


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