Skip to content

Fix GH-25667: LibreSSL build broken since PHP 8.6 - #25849

Open
bukka wants to merge 1 commit into
php:PHP-8.6from
bukka:openssl_gh25667_libressl_build
Open

bukka wants to merge 1 commit into
php:PHP-8.6from
bukka:openssl_gh25667_libressl_build

Conversation

@bukka

@bukka bukka commented Nov 27, 2026

Copy link
Copy Markdown
Member

LibreSSL does not implement TLS 1.3 external PSK nor early data and it also defines OPENSSL_NO_PSK so the functions used by the PSK and early data stream context options are not available there.

The TLS 1.3 PSK code is now compiled only if supported and psk_client_cb and psk_server_cb options fail with a stream error if the linked library has no PSK support at all. The early data options are silently ignored as early data are never guaranteed to be accepted.

Tests depending on PSK, early data and TLS 1.3 session resumption are skipped for LibreSSL.

LibreSSL does not implement TLS 1.3 external PSK nor early data and it
also defines OPENSSL_NO_PSK so the functions used by the PSK and early
data stream context options are not available there.

The TLS 1.3 PSK code is now compiled only if supported and psk_client_cb
and psk_server_cb options fail with a stream error if the linked library
has no PSK support at all. The early data options are silently ignored
as early data are never guaranteed to be accepted.

Tests depending on PSK, early data and TLS 1.3 session resumption are
skipped for LibreSSL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant