Source: libengine-gost-openssl1.1
Version: 1.1.0.3-1
Severity: important
Tags: bookworm sid
User: pkg-openssl-de...@lists.alioth.debian.org
Usertags: ftbfs-3.0

Your package is failing to build using OpenSSL 3.0 with the
following error:

| [  3%] Building C object CMakeFiles/gost.dir/gost_ec_keyx.c.o
| /usr/bin/cc   -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -O2 -Werror -Wall -Wno-unused-parameter 
-Wno-unused-function -Wno-missing-braces -ggdb -DL_ENDIAN -fPIC -MD -MT 
CMakeFiles/gost.dir/gost_ec_keyx.c.o -MF CMakeFiles/gost.dir/gost_ec_keyx.c.o.d 
-o CMakeFiles/gost.dir/gost_ec_keyx.c.o -c /<<PKGBUILDDIR>>/gost_ec_keyx.c
| /<<PKGBUILDDIR>>/gost_ec_keyx.c: In function ‘VKO_compute_key’:
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:27:5: error: ‘EC_KEY_get0_private_key’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    27 |     const BIGNUM *key = EC_KEY_get0_private_key(priv_key);
|       |     ^~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1046:37: note: declared here
|  1046 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const 
EC_KEY *key);
|       |                                     ^~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:28:5: error: ‘EC_KEY_get0_group’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    28 |     EC_POINT *pnt = EC_POINT_new(EC_KEY_get0_group(priv_key));
|       |     ^~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1032:39: note: declared here
|  1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY 
*key);
|       |                                       ^~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:61:5: error: ‘EC_KEY_get0_group’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    61 |     EC_GROUP_get_order(EC_KEY_get0_group(priv_key), order, ctx);
|       |     ^~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1032:39: note: declared here
|  1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY 
*key);
|       |                                       ^~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:64:9: error: ‘EC_KEY_get0_group’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    64 |         (EC_KEY_get0_group(priv_key), pnt, NULL, pub_key, p, ctx)) {
|       |         ^
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1032:39: note: declared here
|  1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY 
*key);
|       |                                       ^~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:68:5: error: 
‘EC_POINT_get_affine_coordinates_GFp’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|    68 |     EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key),
|       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:657:27: note: declared here
|   657 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp
|       |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:68:5: error: ‘EC_KEY_get0_group’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|    68 |     EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(priv_key),
|       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1032:39: note: declared here
|  1032 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY 
*key);
|       |                                       ^~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c: In function ‘pkey_gost_ec_derive’:
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:133:25: error: ‘EC_KEY_get0_public_key’ 
is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   133 |                         
EC_KEY_get0_public_key(EVP_PKEY_get0(peer_key)),
|       |                         ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1060:39: note: declared here
|  1060 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const 
EC_KEY *key);
|       |                                       ^~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:133:25: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   133 |                         
EC_KEY_get0_public_key(EVP_PKEY_get0(peer_key)),
|       |                         ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:134:25: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   134 |                         (EC_KEY *)EVP_PKEY_get0(my_key), 
data->shared_ukm,
|       |                         ^
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c: In function ‘pkey_GOST_ECcp_encrypt’:
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:188:13: error: ‘EVP_PKEY_assign’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   188 |             if (! EVP_PKEY_assign(sec_key, EVP_PKEY_base_id(pubk), 
EC_KEY_new()) ||
|       |             ^~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1328:5: note: declared here
|  1328 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
|       |     ^~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:188:13: error: ‘EC_KEY_new’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   188 |             if (! EVP_PKEY_assign(sec_key, EVP_PKEY_base_id(pubk), 
EC_KEY_new()) ||
|       |             ^~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:966:31: note: declared here
|   966 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void);
|       |                               ^~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:190:17: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   190 |                 ! gost_ec_keygen(EVP_PKEY_get0(sec_key))) {
|       |                 ^
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:206:30: error: ‘EC_KEY_get0_public_key’ 
is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   206 |                              
EC_KEY_get0_public_key(EVP_PKEY_get0(pubk)),
|       |                              ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1060:39: note: declared here
|  1060 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const 
EC_KEY *key);
|       |                                       ^~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:206:30: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   206 |                              
EC_KEY_get0_public_key(EVP_PKEY_get0(pubk)),
|       |                              ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:207:30: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   207 |                              EVP_PKEY_get0(sec_key), ukm, dgst_nid)) {
|       |                              ^~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c: In function ‘pkey_GOST_ECcp_decrypt’:
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:327:26: error: ‘EC_KEY_get0_public_key’ 
is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   327 |                          
EC_KEY_get0_public_key(EVP_PKEY_get0(peerkey)),
|       |                          ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /usr/include/openssl/x509.h:33,
|                  from /<<PKGBUILDDIR>>/gost_lcl.h:16,
|                  from /<<PKGBUILDDIR>>/gost_ec_keyx.c:18:
| /usr/include/openssl/ec.h:1060:39: note: declared here
|  1060 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const 
EC_KEY *key);
|       |                                       ^~~~~~~~~~~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:327:26: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   327 |                          
EC_KEY_get0_public_key(EVP_PKEY_get0(peerkey)),
|       |                          ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| /<<PKGBUILDDIR>>/gost_ec_keyx.c:328:26: error: ‘EVP_PKEY_get0’ is 
deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
|   328 |                          EVP_PKEY_get0(priv), wrappedKey, dgst_nid)) {
|       |                          ^~~~~~~~~~~~~
| In file included from /<<PKGBUILDDIR>>/gost_ec_keyx.c:10:
| /usr/include/openssl/evp.h:1330:7: note: declared here
|  1330 | void *EVP_PKEY_get0(const EVP_PKEY *pkey);
|       |       ^~~~~~~~~~~~~
| cc1: all warnings being treated as errors
| make[3]: *** [CMakeFiles/gost.dir/build.make:79: 
CMakeFiles/gost.dir/gost_ec_keyx.c.o] Error 1

For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html

Sebastian

Reply via email to