mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Cleanup AES compatibility code
OpenSSL 1.0.1 has support for CTR & GCM modes so the checks here are no longer needed. This allows for a bunch of additional cleanup of the old code. As for old MacOS versions etc, LibreSSL is a kind of compatibility layer there but things already don't work anyway with that, so it doesn't break anything that isn't already broken. OpenSSL is needed on MacOS separately anyway (like installed with Homebrew). Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
816f06e172
commit
710815674a
@@ -75,11 +75,7 @@
|
||||
|
||||
#elif defined(HAVE_LIBCRYPTO)
|
||||
# ifdef HAVE_OPENSSL_AES_H
|
||||
# ifdef HAVE_OPENSSL_EVP_AES_GCM
|
||||
# define GCM "aes256-gcm@openssh.com,aes128-gcm@openssh.com,"
|
||||
# else
|
||||
# define GCM ""
|
||||
# endif /* HAVE_OPENSSL_EVP_AES_GCM */
|
||||
# define GCM "aes256-gcm@openssh.com,aes128-gcm@openssh.com,"
|
||||
# define AES GCM "aes256-ctr,aes192-ctr,aes128-ctr,"
|
||||
# define AES_CBC "aes256-cbc,aes192-cbc,aes128-cbc,"
|
||||
# else /* HAVE_OPENSSL_AES_H */
|
||||
|
||||
Reference in New Issue
Block a user