aboutsummaryrefslogtreecommitdiffstats
path: root/main/aescrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/aescrypt.c')
-rw-r--r--main/aescrypt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/aescrypt.c b/main/aescrypt.c
index 1ccddf3f5..7b34809bb 100644
--- a/main/aescrypt.c
+++ b/main/aescrypt.c
@@ -42,13 +42,15 @@
* \author Dr Brian Gladman <brg@gladman.me.uk>
*/
-#include "aesopt.h"
-
#if defined(__cplusplus)
extern "C"
{
#endif
+#ifndef HAVE_CRYPTO
+
+#include "aesopt.h"
+
#define si(y,x,k,c) (s(y,c) = word_in(x, c) ^ (k)[c])
#define so(y,x,c) word_out(y, c, s(x,c))
@@ -312,6 +314,8 @@ aes_rval aes_decrypt(const void *in_blk, void *out_blk, const aes_decrypt_ctx cx
#endif
+#endif /* !HAVE_CRYPTO */
+
#if defined(__cplusplus)
}
#endif