Add necessary checks of OPENSSL_NO_DH, OPENSSL_NO_DSA and OPENSSL_NO_EC
authorRichard Levitte <levitte@openssl.org>
Wed, 2 Dec 2020 17:30:55 +0000 (18:30 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 16 Dec 2020 10:56:38 +0000 (11:56 +0100)
commita2e145f8dbf064b56f793fc77b3ccd79f7c67689
treeffa00af5cda2df173609fe362f9119092f9842cf
parentc2403f362efc519e473269d183adc7cceddb8c54
Add necessary checks of OPENSSL_NO_DH, OPENSSL_NO_DSA and OPENSSL_NO_EC

When OpenSSL is configured with 'no-dh', 'no-dsa' and 'no-ec'
combined, some static functions have no use, which the compiler may
complain about.  We therefore add extra guards to silence it.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13589)
providers/implementations/encode_decode/encode_key2any.c
test/endecode_test.c
test/evp_pkey_dparams_test.c