Skip to content

Conversation

@zboszor
Copy link

@zboszor zboszor commented May 9, 2024

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 <[email protected]>
nerijus added a commit to vadz/mahogany that referenced this pull request Nov 5, 2025
@nerijus
Copy link

nerijus commented Nov 5, 2025

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