summaryrefslogtreecommitdiff
path: root/umac.c
diff options
context:
space:
mode:
authordtucker <dtucker>2007-06-14 13:21:32 +0000
committerdtucker <dtucker>2007-06-14 13:21:32 +0000
commitd909dec78ffbccff5f2c094544a40fdedf32b0fd (patch)
tree9ea3e99f59a456325369e4a1c81999ac1b7f370d /umac.c
parentc03ff01610d787a7f9590095d6553309869bf6bb (diff)
downloadopenssh-d909dec78ffbccff5f2c094544a40fdedf32b0fd.tar.gz
- (dtucker) [cipher-ctr.c umac.c openbsd-compat/openssl-compat.h] Move the
USE_BUILTIN_RIJNDAEL compat goop to openssl-compat.h so it can be shared with umac.c. Allows building with OpenSSL 0.9.5 again including umac support. With tim@ djm@, ok djm.
Diffstat (limited to 'umac.c')
-rw-r--r--umac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/umac.c b/umac.c
index 29c202a2..c2fdcf44 100644
--- a/umac.c
+++ b/umac.c
@@ -165,7 +165,10 @@ static void STORE_UINT32_REVERSED(void *ptr, UINT32 x)
#define AES_BLOCK_LEN 16
/* OpenSSL's AES */
-#include <openssl/aes.h>
+#include "openbsd-compat/openssl-compat.h"
+#ifndef USE_BUILTIN_RIJNDAEL
+# include <openssl/aes.h>
+#endif
typedef AES_KEY aes_int_key[1];
#define aes_encryption(in,out,int_key) \
AES_encrypt((u_char *)(in),(u_char *)(out),(AES_KEY *)int_key)