Move old DSA and RSA structs into EVP_PKEY

For code simplification and less ifdefs removing DSA and RSA
structures of the old openssl api and using the new EVP_PKEY
api to store the legacy keys.

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2022-12-12 15:45:15 +01:00
committed by Jakub Jelen
parent 9a3e218b6f
commit 54c1703cb2
7 changed files with 211 additions and 276 deletions

View File

@@ -7,4 +7,8 @@
#define NISTP384 "P-384"
#define NISTP521 "P-521"
#if OPENSSL_VERSION_NUMBER < 0x30000000L
#define EVP_PKEY_eq EVP_PKEY_cmp
#endif /* OPENSSL_VERSION_NUMBER */
#endif /* LIBCRYPTO_COMPAT_H */