summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-03-12 13:11:34 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-03-12 13:14:31 +0100
commita11e172577e6c1d7fc19503fb2854777b373131b (patch)
tree158578c3a29d2f4c91671ede4c549cf1647ac62e
parentd8fc65ad71252c9480fd2db450486c91d5d4edf5 (diff)
downloadlibssh-a11e172577e6c1d7fc19503fb2854777b373131b.tar.gz
libssh-a11e172577e6c1d7fc19503fb2854777b373131b.tar.xz
libssh-a11e172577e6c1d7fc19503fb2854777b373131b.zip
libcrypto: Add missing includes for modes.h
This defines block128_f. Fixes T133. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/libcrypto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index a89adb3b..ad743609 100644
--- a/src/libcrypto.c
+++ b/src/libcrypto.c
@@ -43,6 +43,7 @@
#include <openssl/hmac.h>
#include <openssl/opensslv.h>
#include <openssl/rand.h>
+
#include "libcrypto-compat.h"
#ifdef HAVE_OPENSSL_AES_H
@@ -65,6 +66,10 @@
#include <openssl/kdf.h>
#endif
+#ifdef HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT
+#include <openssl/modes.h>
+#endif
+
#include "libssh/crypto.h"
static int libcrypto_initialized = 0;