mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 12:50:30 +09:00
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>
15 lines
305 B
C
15 lines
305 B
C
#ifndef LIBCRYPTO_COMPAT_H
|
|
#define LIBCRYPTO_COMPAT_H
|
|
|
|
#include <openssl/opensslv.h>
|
|
|
|
#define NISTP256 "P-256"
|
|
#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 */
|