Skip to content

LibreSSL build broken since PHP 8.6 #25667

Open

Description

@ndossche

Description

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.

PHP Version

8.6+

Operating System

Linux

Activity

  1. ndossche commented on Nov 23, 2026

    @ndossche
    MemberAuthor

    @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.

  2. lazerg commented on Nov 23, 2026

    @lazerg
    Contributor

    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.

  3. bukka commented on Nov 23, 2026

    @bukka
    Member

    Yeah we want to support LibreSSL - the v1 backend is pretty much for older versions, LibreSSL and possibly other non provider forks.

  4. bukka commented on Nov 23, 2026

    @bukka
    Member

    In terms of CI, there was a talk about adding OpenBSD in #24669 which would be really good and covered this.

  5. bukka commented on Nov 23, 2026

    @bukka
    Member

    I will look into those later this week.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions