mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-30 05:24:50 +03:00
kex: Fix simpledes with gcrypt.
This commit is contained in:
parent
3c5235fdc0
commit
d0889dd9ea
42
src/kex.c
42
src/kex.c
@ -36,27 +36,27 @@
|
|||||||
#include "libssh/string.h"
|
#include "libssh/string.h"
|
||||||
|
|
||||||
#ifdef HAVE_LIBGCRYPT
|
#ifdef HAVE_LIBGCRYPT
|
||||||
#define BLOWFISH "blowfish-cbc,"
|
# define BLOWFISH "blowfish-cbc,"
|
||||||
#define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
||||||
#define DES "3des-cbc"
|
# define DES "3des-cbc"
|
||||||
#elif defined HAVE_LIBCRYPTO
|
# define SIMPLEDES "des-cbc-ssh1"
|
||||||
#ifdef HAVE_OPENSSL_BLOWFISH_H
|
#elif defined(HAVE_LIBCRYPTO)
|
||||||
#define BLOWFISH "blowfish-cbc,"
|
# ifdef HAVE_OPENSSL_BLOWFISH_H
|
||||||
#else
|
# define BLOWFISH "blowfish-cbc,"
|
||||||
#define BLOWFISH ""
|
# else
|
||||||
#endif
|
# define BLOWFISH ""
|
||||||
#ifdef HAVE_OPENSSL_AES_H
|
# endif
|
||||||
#ifdef BROKEN_AES_CTR
|
# ifdef HAVE_OPENSSL_AES_H
|
||||||
#define AES "aes256-cbc,aes192-cbc,aes128-cbc,"
|
# ifdef BROKEN_AES_CTR
|
||||||
#else
|
# define AES "aes256-cbc,aes192-cbc,aes128-cbc,"
|
||||||
#define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
# else
|
||||||
#endif /* BROKEN_AES_CTR */
|
# define AES "aes256-ctr,aes192-ctr,aes128-ctr,aes256-cbc,aes192-cbc,aes128-cbc,"
|
||||||
#else
|
# endif /* BROKEN_AES_CTR */
|
||||||
#define AES ""
|
# else
|
||||||
#endif
|
# define AES ""
|
||||||
|
# endif
|
||||||
#define DES "3des-cbc"
|
# define DES "3des-cbc"
|
||||||
#define SIMPLEDES "des-cbc-ssh1"
|
# define SIMPLEDES "des-cbc-ssh1"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WITH_ZLIB
|
#ifdef WITH_ZLIB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user