aboutsummaryrefslogtreecommitdiff
path: root/src/dh.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2018-02-28 10:24:53 -0600
committerAndreas Schneider <asn@cryptomilk.org>2018-06-28 09:06:30 +0200
commitd038c4dee76ff8dff93101f5807a78f21064824c (patch)
treea202ac62c7012bbd3ce2ec9446b8906e39f23ff4 /src/dh.c
parentebd76bf34767220ad8f5bd4b5d40452969821025 (diff)
downloadlibssh-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dh.c b/src/dh.c
index 90eda09b..02935795 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -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);