RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1962035 - dovecot: Port to OpenSSL 3.0
Summary: dovecot: Port to OpenSSL 3.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dovecot
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Michal Hlavinka
QA Contact: Evgeny Fedin
URL:
Whiteboard:
Depends On:
Blocks: 1958021
TreeView+ depends on / blocked
 
Reported: 2021-05-19 08:49 UTC by Sahana Prasad
Modified: 2022-01-12 11:42 UTC (History)
5 users (show)

Fixed In Version: dovecot-2.3.14-3.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-12 11:26:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
simple fix to make dovecot work with openssl 3.0 (1.11 KB, patch)
2021-06-03 18:48 UTC, Michal Hlavinka
no flags Details | Diff

Comment 1 Michal Hlavinka 2021-05-25 10:46:38 UTC
I've spent quite some time looking into this, but progress is slow as code compiles without problem, but runtime test fail and openssl is not really friendly for debugging (private internal structures). I don't expect it to be ready for ITM 13 as was asked in the email. Nine days is not nearly enough.

What is "plan B"? Should I change build requirement to compat-openssl11 or... ?

Comment 4 Michal Hlavinka 2021-06-03 18:48:43 UTC
Created attachment 1788877 [details]
simple fix to make dovecot work with openssl 3.0

This is simple fix that makes dovecot work with openssl 3.0

dovecot uses access to EVP_PKEY->EC_KEY to set asn1 flag OPENSSL_EC_NAMED_CURVE and conversion format POINT_CONVERSION_COMPRESSED and also ECDSA_do_sign/ECDSA_do_verify

This used EVP_PKEY_get0_EC_KEY that was changed in 3.0 to return const read only data. This can be somewhat circumvent by using EVP_PKEY_get1_EC_KEY + EC_KEY_free, but in some cases this returns copy of EC_KEY which means that setting parameters on it has no effect on the EVP_PKEY key itself.

This patch creates #define replacement, that it gets the copy (get1) and writes it back immediately, keeping the EC_KEY pointer.

Comment 8 Evgeny Fedin 2021-06-28 08:50:54 UTC
No regression has been found, verified


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