Source: moonshot-trust-router
Version: 3.5.4+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:

| common/tr_dh.c: In function ‘tr_dh_new’:
| common/tr_dh.c:82:3: error: ‘DH_new’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|    82 |   return DH_new();
|       |   ^~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:199:27: note: declared here
|   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
|       |                           ^~~~~~
| common/tr_dh.c: In function ‘tr_create_dh_params’:
| common/tr_dh.c:92:3: error: ‘DH_new’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|    92 |   if (NULL == (dh = DH_new()))
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:199:27: note: declared here
|   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
|       |                           ^~~~~~
| common/tr_dh.c:98:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|    98 |     DH_free(dh);
|       |     ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:109:3: error: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   109 |   DH_set0_pqg(dh, p, q, g);
|       |   ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:255:27: note: declared here
|   255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, 
BIGNUM *g);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:110:3: error: ‘DH_generate_key’ is deprecated: Since 
OpenSSL 3.0 [-Werror=deprecated-declarations]
|   110 |   DH_generate_key(dh);    /* generates the public key */
|       |   ^~~~~~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:223:27: note: declared here
|   223 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
|       |                           ^~~~~~~~~~~~~~~
| common/tr_dh.c:113:5: error: ‘DH_set0_key’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   113 |     DH_set0_key(dh, NULL, BN_bin2bn(priv_key, keylen, NULL));
|       |     ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:258:27: note: declared here
|   258 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM 
*priv_key);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:115:3: error: ‘DH_check’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   115 |   DH_check(dh, &dh_err);
|       |   ^~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:220:27: note: declared here
|   220 | OSSL_DEPRECATEDIN_3_0 int DH_check(const DH *dh, int *codes);
|       |                           ^~~~~~~~
| common/tr_dh.c: In function ‘tr_create_matching_dh’:
| common/tr_dh.c:143:3: error: ‘DH_new’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   143 |   if (NULL == (dh = DH_new())) {
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:199:27: note: declared here
|   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
|       |                           ^~~~~~
| common/tr_dh.c:148:3: error: ‘DH_get0_pqg’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   148 |   DH_get0_pqg(in_dh, &in_p, NULL, &in_g);
|       |   ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:253:28: note: declared here
|   253 | OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p,
|       |                            ^~~~~~~~~~~
| common/tr_dh.c:150:3: error: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   150 |   if (0 == DH_set0_pqg(dh, BN_dup(in_p), NULL, BN_dup(in_g))) {
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:255:27: note: declared here
|   255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, 
BIGNUM *g);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:151:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   151 |     DH_free(dh);
|       |     ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:157:3: error: ‘DH_generate_key’ is deprecated: Since 
OpenSSL 3.0 [-Werror=deprecated-declarations]
|   157 |   DH_generate_key(dh);    /* generates the public key */
|       |   ^~~~~~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:223:27: note: declared here
|   223 | OSSL_DEPRECATEDIN_3_0 int DH_generate_key(DH *dh);
|       |                           ^~~~~~~~~~~~~~~
| common/tr_dh.c:160:5: error: ‘DH_set0_key’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   160 |     DH_set0_key(dh, NULL, BN_bin2bn(priv_key, keylen, NULL));
|       |     ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:258:27: note: declared here
|   258 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM 
*priv_key);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:162:3: error: ‘DH_check’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   162 |   DH_check(dh, &dh_err);
|       |   ^~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:220:27: note: declared here
|   220 | OSSL_DEPRECATEDIN_3_0 int DH_check(const DH *dh, int *codes);
|       |                           ^~~~~~~~
| common/tr_dh.c: In function ‘tr_destroy_dh_params’:
| common/tr_dh.c:183:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   183 |     DH_free(dh);
|       |     ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c: In function ‘tr_dh_dup’:
| common/tr_dh.c:189:3: error: ‘DH_new’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   189 |   DH *out = DH_new();
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:199:27: note: declared here
|   199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
|       |                           ^~~~~~
| common/tr_dh.c:193:3: error: ‘DH_get0_pqg’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   193 |   DH_get0_pqg(in, &in_p, &in_q, &in_g);
|       |   ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:253:28: note: declared here
|   253 | OSSL_DEPRECATEDIN_3_0 void DH_get0_pqg(const DH *dh, const BIGNUM **p,
|       |                            ^~~~~~~~~~~
| common/tr_dh.c:194:3: error: ‘DH_get0_key’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   194 |   DH_get0_key(in, &in_pubkey, &in_privkey);
|       |   ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:256:28: note: declared here
|   256 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM 
**pub_key,
|       |                            ^~~~~~~~~~~
| common/tr_dh.c:204:7: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   204 |       DH_free(out);
|       |       ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:214:7: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   214 |       DH_free(out);
|       |       ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:224:7: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   224 |       DH_free(out);
|       |       ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:234:7: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   234 |       DH_free(out);
|       |       ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:244:7: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   244 |       DH_free(out);
|       |       ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:249:3: error: ‘DH_set0_pqg’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   249 |   if (0 == DH_set0_pqg(out, out_p, out_q, out_g)) {
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:255:27: note: declared here
|   255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, 
BIGNUM *g);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:250:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   250 |     DH_free(out);
|       |     ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c:254:3: error: ‘DH_set0_key’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   254 |   if (0 == DH_set0_key(out, out_pubkey, out_privkey)) {
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:258:27: note: declared here
|   258 | OSSL_DEPRECATEDIN_3_0 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM 
*priv_key);
|       |                           ^~~~~~~~~~~
| common/tr_dh.c:255:5: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   255 |     DH_free(out);
|       |     ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| common/tr_dh.c: In function ‘tr_compute_dh_key’:
| common/tr_dh.c:276:3: error: ‘DH_size’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   276 |   buflen = DH_size(priv_dh);
|       |   ^~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:203:27: note: declared here
|   203 | OSSL_DEPRECATEDIN_3_0 int DH_size(const DH *dh);
|       |                           ^~~~~~~
| common/tr_dh.c:284:3: error: ‘DH_compute_key’ is deprecated: Since 
OpenSSL 3.0 [-Werror=deprecated-declarations]
|   284 |   rc = DH_compute_key(buf, pub_key, priv_dh);
|       |   ^~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:224:27: note: declared here
|   224 | OSSL_DEPRECATEDIN_3_0 int DH_compute_key(unsigned char *key,
|       |                           ^~~~~~~~~~~~~~
| common/tr_dh.c: In function ‘tr_dh_pub_hash’:
| common/tr_dh.c:303:3: error: ‘DH_get0_key’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
|   303 |   DH_get0_key(request->tidc_dh, &pub, NULL);
|       |   ^~~~~~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:256:28: note: declared here
|   256 | OSSL_DEPRECATEDIN_3_0 void DH_get0_key(const DH *dh, const BIGNUM 
**pub_key,
|       |                            ^~~~~~~~~~~
| common/tr_dh.c: In function ‘tr_dh_destroy’:
| common/tr_dh.c:324:3: error: ‘DH_free’ is deprecated: Since OpenSSL 3.0 
[-Werror=deprecated-declarations]
|   324 |   DH_free(dh);
|       |   ^~~~~~~
| In file included from common/tr_dh.c:35:
| /usr/include/openssl/dh.h:200:28: note: declared here
|   200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
|       |                            ^~~~~~~
| cc1: all warnings being treated as errors
| make[2]: *** [Makefile:2849: common/tr_dh.o] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [Makefile:5668: all-recursive] Error 1

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

Sebastian

Reply via email to