Skip to content

Support TLSv1.2+#5

Open
zboszor wants to merge 1 commit into
uw-imap:masterfrom
zboszor:support-tls1.2
Open

Support TLSv1.2+#5
zboszor wants to merge 1 commit into
uw-imap:masterfrom
zboszor:support-tls1.2

Conversation

@zboszor

@zboszor zboszor commented May 9, 2024

Copy link
Copy Markdown

The patched sources of uw-imap 2007f support building against OpenSSL 1.1.0 or later.

However, TLSv1_client_method() and TLSv1_server_method() restricts uw-imap to TLSv1.0.

These APIs, along with explicitly versioned APIs like TLSv1_1_*_method() and TLSv1_2_*_method() are deprecated in OpenSSL 1.1.0 or later. The replacements are unversioned API functions: TLS_client_method() and TLS_server_method() which support TLS version autonegotiation.

This allows the PHP IMAP extension to work with IMAP servers that enforce TLSv1.2 or higher.

Fixes: https://bugs.php.net/bug.php?id=76928

The patched sources of uw-imap 2007f support building against
OpenSSL 1.1.0 or later.

However, TLSv1_client_method() and TLSv1_server_method()
restricts uw-imap to TLSv1.0.

These APIs, along with explicitly versioned APIs like
TLSv1_1_*_method() and TLSv1_2_*_method() are deprecated
in OpenSSL 1.1.0 or later. The replacements are unversioned
API functions: TLS_client_method() and TLS_server_method()
which support TLS version autonegotiation.

This allows the PHP IMAP extension to work with IMAP servers
that enforce TLSv1.2 or higher.

Fixes: https://bugs.php.net/bug.php?id=76928
Signed-off-by: Zoltán Böszörményi <zoltan.boszormenyi@xenial.com>
nerijus added a commit to vadz/mahogany that referenced this pull request Nov 5, 2025
@nerijus

nerijus commented Nov 5, 2025

Copy link
Copy Markdown

I've just used your patch in Mahogany and was able to send a message using STARTTLS, which I could not do before. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants