aboutsummaryrefslogtreecommitdiff
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:33:08 +0100
commit3736a0367bf3d7e0bdf61922a593b2facbc347a8 (patch)
tree83fb59e41c15bd8f4eb513a568dca69d0862d923
parentbe73335f8e1b8021009ca11d16dd446a0dcc7603 (diff)
downloadlibssh-3736a0367bf3d7e0bdf61922a593b2facbc347a8.tar.gz
libssh-3736a0367bf3d7e0bdf61922a593b2facbc347a8.tar.xz
libssh-3736a0367bf3d7e0bdf61922a593b2facbc347a8.zip
libcrypto: Add missing includes for modes.h
This defines block128_f. Fixes T133. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 65bc24d8a4207e3bcb81278174a360efc7d93ad5)
-rw-r--r--src/libcrypto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcrypto.c b/src/libcrypto.c
index 340a3e64..a7eadb47 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
@@ -54,6 +55,10 @@
#include <openssl/des.h>
#endif
+#ifdef HAVE_OPENSSL_CRYPTO_CTR128_ENCRYPT
+#include <openssl/modes.h>
+#endif
+
#if (OPENSSL_VERSION_NUMBER<0x00907000L)
#define OLD_CRYPTO
#endif