Bug #80368 [Com]: OpenSSL extension fails to build against LibreSSL due to lack of OCB support

From: Date: Tue, 01 Dec 2020 13:04:18 +0000
Subject: Bug #80368 [Com]: OpenSSL extension fails to build against LibreSSL due to lack of OCB support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230762@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80368&edit=1

 ID:                 80368
 Comment by:         alex at ozo dot com
 Reported by:        izorkin at elven dot pw
 Summary:            OpenSSL extension fails to build against LibreSSL
                     due to lack of OCB support
 Status:             Closed
 Type:               Bug
 Package:            OpenSSL related
 Operating System:   NixOS 20.09
 PHP Version:        8.0.0RC4
 Assigned To:        nikic
 Block user comment: N
 Private report:     N

 New Comment:

the last patch compiled fine php-7.4.13 on my 32bit gentoo-current with libressl-3.3.0 installed. I
guess this patch needs also testing against a distro/openssl system


Previous Comments:
------------------------------------------------------------------------
[2020-12-01 13:00:55] alex at ozo dot com

The following patch has been added/updated:

Patch Name: check_SSL_OCB_support
Revision:   1606827655
URL:        https://bugs.php.net/patch-display.php?bug=80368&patch=check_SSL_OCB_support&revision=1606827655

------------------------------------------------------------------------
[2020-11-30 14:18:26] nikic@php.net

New fix applied in https://github.com/php/php-src/commit/ecee3f1209a7c0ac9f99c7f640b2f5df56656e58,
hopefully this one works.

------------------------------------------------------------------------
[2020-11-30 14:17:46] nikic@php.net

Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ecee3f1209a7c0ac9f99c7f640b2f5df56656e58
Log: Next attempt to fix bug #80368

------------------------------------------------------------------------
[2020-11-28 13:51:55] izorkin at elven dot pw

Patch not working:

/build/php-src-8.0.0/ext/openssl/openssl.c: In function 'php_openssl_load_cipher_mode':
/build/php-src-8.0.0/ext/openssl/openssl.c:6892:8: error: 'EVP_CIPH_OCB_MODE' undeclared
(first use in this function); did you mean 'EVP_CIPH_OFB_MODE'?
 6892 |   case EVP_CIPH_OCB_MODE:
      |        ^~~~~~~~~~~~~~~~~
      |        EVP_CIPH_OFB_MODE
/build/php-src-8.0.0/ext/openssl/openssl.c:6892:8: note: each undeclared identifier is reported only
once for each function it appears in
/build/php-src-8.0.0/ext/openssl/openssl.c:6900:30: error: 'EVP_CTRL_AEAD_GET_TAG'
undeclared (first use in this function); did you mean 'EVP_CTRL_CCM_GET_TAG'?
 6900 |    mode->aead_get_tag_flag = EVP_CTRL_AEAD_GET_TAG;
      |                              ^~~~~~~~~~~~~~~~~~~~~
      |                              EVP_CTRL_CCM_GET_TAG
/build/php-src-8.0.0/ext/openssl/openssl.c:6901:30: error: 'EVP_CTRL_AEAD_SET_TAG'
undeclared (first use in this function); did you mean 'EVP_CTRL_GCM_SET_TAG'?
 6901 |    mode->aead_set_tag_flag = EVP_CTRL_AEAD_SET_TAG;
      |                              ^~~~~~~~~~~~~~~~~~~~~
      |                              EVP_CTRL_GCM_SET_TAG
/build/php-src-8.0.0/ext/openssl/openssl.c:6902:28: error: 'EVP_CTRL_AEAD_SET_IVLEN'
undeclared (first use in this function); did you mean 'EVP_CTRL_GCM_SET_IVLEN'?
 6902 |    mode->aead_ivlen_flag = EVP_CTRL_AEAD_SET_IVLEN;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~
      |                            EVP_CTRL_GCM_SET_IVLEN
make: *** [Makefile:799: ext/openssl/openssl.lo] Error 1
make: *** Waiting for unfinished jobs....

------------------------------------------------------------------------
[2020-11-27 09:58:57] nikic@php.net

Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f579fd7c8171cb0f7ecc8db912933df450f3861
Log: Fixed bug #80368

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=80368


--
Edit this bug report at https://bugs.php.net/bug.php?id=80368&edit=1


Thread (10 messages)

« previous php.bugs (#230762) next »