aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-03-12 13:11:34 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-03-13 10:31:39 +0100
commit65bc24d8a4207e3bcb81278174a360efc7d93ad5 (patch)
tree158578c3a29d2f4c91671ede4c549cf1647ac62e /src
parentd8fc65ad71252c9480fd2db450486c91d5d4edf5 (diff)
downloadlibssh-65bc24d8a4207e3bcb81278174a360efc7d93ad5.tar.gz
libssh-65bc24d8a4207e3bcb81278174a360efc7d93ad5.tar.xz
libssh-65bc24d8a4207e3bcb81278174a360efc7d93ad5.zip
libcrypto: Add missing includes for modes.h
This defines block128_f. Fixes T133. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-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;