You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with LibreSSL I get a bunch of these (and much more) since PHP 8.6:
php-src/ext/openssl/xp_ssl.c: In function 'php_openssl_setup_client_psk':
php-src/ext/openssl/xp_ssl.c:2096:9: error: implicit declaration of function 'SSL_CTX_set_psk_use_session_callback'; did you mean 'SSL_set_psk_use_session_callback'? [-Wimplicit-function-declaration]
2096 | SSL_CTX_set_psk_use_session_callback(sslsock->ctx, php_openssl_psk_use_session_cb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SSL_set_psk_use_session_callback
php-src/ext/openssl/xp_ssl.c: In function 'php_openssl_setup_server_psk':
php-src/ext/openssl/xp_ssl.c:2118:9: error: implicit declaration of function 'SSL_CTX_set_psk_find_session_callback'; did you mean 'SSL_set_psk_use_session_callback'? [-Wimplicit-function-declaration]
2118 | SSL_CTX_set_psk_find_session_callback(sslsock->ctx, php_openssl_psk_find_session_cb);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SSL_set_psk_use_session_callback
php-src/ext/openssl/xp_ssl.c: In function 'php_openssl_setup_server_early_data':
php-src/ext/openssl/xp_ssl.c:2196:17: error: implicit declaration of function 'SSL_CTX_set_recv_max_early_data'; did you mean 'SSL_CTX_set_max_early_data'? [-Wimplicit-function-declaration]
2196 | SSL_CTX_set_recv_max_early_data(sslsock->ctx, (uint32_t) max_early_data);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SSL_CTX_set_max_early_data
This is due to the introduction of the openssl session class.
@bukka Do we want to keep supporting LibreSSL? We should make a decision on how to support the session class, and also prevent breakage with a CI build.
I did not send a patch, because the question from ndossche to bukka is still open. A fix now would be a guess. The other LibreSSL build PR, #23689 (for GH-20920), has no review since September. When the direction is clear, I can send a fix.
Activity
ndossche commentedon Nov 23, 2026
@bukka Do we want to keep supporting LibreSSL? We should make a decision on how to support the session class, and also prevent breakage with a CI build.
lazerg commentedon Nov 23, 2026
I did not send a patch, because the question from ndossche to bukka is still open. A fix now would be a guess. The other LibreSSL build PR, #23689 (for GH-20920), has no review since September. When the direction is clear, I can send a fix.
bukka commentedon Nov 23, 2026
Yeah we want to support LibreSSL - the v1 backend is pretty much for older versions, LibreSSL and possibly other non provider forks.
bukka commentedon Nov 23, 2026
In terms of CI, there was a talk about adding OpenBSD in #24669 which would be really good and covered this.
bukka commentedon Nov 23, 2026
I will look into those later this week.
remove ext/openssl patches that have had similar changes committed up…