[LU-15896] gss/sk_utils.c error: 'DH_check' is deprecated: Since OpenSSL 3.0 Created: 26/May/22 Updated: 21/Aug/22 Resolved: 08/Aug/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0, Lustre 2.15.2 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Jian Yu | Assignee: | Sebastien Buisson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | ubuntu | ||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
While building gss/sk_utils.c with OpenSSL 3.0.x and gcc 11 on Ubuntu 22.04, it failed with the following errors: gss/sk_utils.c: In function 'sk_is_dh_valid':
gss/sk_utils.c:714:17: error: 'DH_check' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
714 | rc = DH_check(dh, &codes);
| ^~
In file included from gss/sk_utils.c:36:
/usr/include/openssl/dh.h:220:27: note: declared here
220 | OSSL_DEPRECATEDIN_3_0 int DH_check(const DH *dh, int *codes);
| ^~~~~~~~
gss/sk_utils.c:723:9: error: 'DH_get0_pqg' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
723 | DH_get0_pqg(dh, &p, NULL, &g);
| ^~~~~~~~~~~
In file included from gss/sk_utils.c:36:
/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,
| ^~~~~~~~~~~
gss/sk_utils.c:747:9: error: 'BN_is_prime_ex' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
747 | rc = BN_is_prime_ex(p, num_rounds, ctx, NULL);
| ^~
In file included from /usr/include/openssl/asn1.h:33,
from /usr/include/openssl/dh.h:85,
from gss/sk_utils.c:36:
/usr/include/openssl/bn.h:373:5: note: declared here
373 | int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);
| ^~~~~~~~~~~~~~
gss/sk_utils.c:759:9: error: 'BN_is_prime_ex' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
759 | rc = BN_is_prime_ex(r, num_rounds, ctx, NULL);
| ^~
In file included from /usr/include/openssl/asn1.h:33,
from /usr/include/openssl/dh.h:85,
from gss/sk_utils.c:36:
/usr/include/openssl/bn.h:373:5: note: declared here
373 | int BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);
| ^~~~~~~~~~~~~~
gss/sk_utils.c: In function 'sk_speedtest_dh_valid':
gss/sk_utils.c:809:9: error: 'DH_new' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
809 | dh = DH_new();
| ^~
In file included from gss/sk_utils.c:36:
/usr/include/openssl/dh.h:199:27: note: declared here
199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
| ^~~~~~
gss/sk_utils.c:825:9: error: 'DH_set0_pqg' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
825 | if (!DH_set0_pqg(dh, p, NULL, g)) {
| ^~
In file included from gss/sk_utils.c:36:
/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);
| ^~~~~~~~~~~
gss/sk_utils.c:873:9: error: 'DH_free' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
873 | DH_free(dh);
| ^~~~~~~
<~snip~>
# gcc --version gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 # openssl version OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022) |
| Comments |
| Comment by Jian Yu [ 26/May/22 ] |
|
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
|
| Comment by Jian Yu [ 26/May/22 ] |
|
Hi sebastien, |
| Comment by Gerrit Updater [ 30/May/22 ] |
|
"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47485 |
| Comment by Sebastien Buisson [ 30/May/22 ] |
|
Hi yujian can you please give a try to https://review.whamcloud.com/47485 ? |
| Comment by Jian Yu [ 30/May/22 ] |
|
It works. Thank you, sebastien. |
| Comment by Gerrit Updater [ 18/Jun/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47485/ |
| Comment by Gerrit Updater [ 23/Jun/22 ] |
|
"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47717 |
| Comment by Gerrit Updater [ 24/Jun/22 ] |
|
"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47739 |
| Comment by Gerrit Updater [ 05/Jul/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47739/ |
| Comment by Gerrit Updater [ 08/Aug/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47717/ |
| Comment by Peter Jones [ 08/Aug/22 ] |
|
Landed for 2.16 |
| Comment by Gerrit Updater [ 10/Aug/22 ] |
|
"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48184 |
| Comment by Gerrit Updater [ 20/Aug/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/48184/ |