diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2018-02-28 10:24:53 -0600 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-06-28 09:06:30 +0200 |
commit | d038c4dee76ff8dff93101f5807a78f21064824c (patch) | |
tree | a202ac62c7012bbd3ce2ec9446b8906e39f23ff4 /src/dh.c | |
parent | ebd76bf34767220ad8f5bd4b5d40452969821025 (diff) | |
download | libssh-d038c4dee76ff8dff93101f5807a78f21064824c.tar.gz libssh-d038c4dee76ff8dff93101f5807a78f21064824c.tar.xz libssh-d038c4dee76ff8dff93101f5807a78f21064824c.zip |
chacha: packet encryption
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/dh.c')
-rw-r--r-- | src/dh.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -68,6 +68,7 @@ #include <openssl/rand.h> #include <openssl/evp.h> #include <openssl/err.h> +#include "libssh/libcrypto.h" #endif static unsigned char p_group1_value[] = { @@ -210,6 +211,8 @@ int ssh_crypto_init(void) { bignum_bin2bn(p_group14_value, P_GROUP14_LEN, p_group14); OpenSSL_add_all_algorithms(); + + libcrypto_init(); #elif defined HAVE_LIBMBEDCRYPTO p_group1 = bignum_new(); bignum_bin2bn(p_group1_value, P_GROUP1_LEN, p_group1); |