diff options
author | Love Hörnquist Åstrand <lha@kth.se> | 2003-09-03 09:38:26 +0000 |
---|---|---|
committer | Love Hörnquist Åstrand <lha@kth.se> | 2003-09-03 09:38:26 +0000 |
commit | ca12cabf2f18d934d9496ef9cbd60f4b5feb24fd (patch) | |
tree | 5eee4d5cf4fffdacaec0c5cdb74506261bd3c34c /cf/crypto.m4 | |
parent | 03f9a30177199e3acd026a6a13f661eb197cc009 (diff) |
check for DES_, AES_, and if openssl UI_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12755 ec53bebd-3082-4978-b11e-865c3cabbd6b
Diffstat (limited to 'cf/crypto.m4')
-rw-r--r-- | cf/crypto.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cf/crypto.m4 b/cf/crypto.m4 index 6c5967938..ee2d1c5ef 100644 --- a/cf/crypto.m4 +++ b/cf/crypto.m4 @@ -11,9 +11,10 @@ m4_define([test_headers], [ #include <openssl/md4.h> #include <openssl/md5.h> #include <openssl/sha.h> - #define OPENSSL_DES_LIBDES_COMPATIBILITY #include <openssl/des.h> #include <openssl/rc4.h> + #include <openssl/aes.h> + #include <openssl/ui.h> #include <openssl/rand.h> #else #include <md4.h> @@ -21,6 +22,7 @@ m4_define([test_headers], [ #include <sha.h> #include <des.h> #include <rc4.h> + #include <aes.h> #endif #ifdef OLD_HASH_NAMES typedef struct md4 MD4_CTX; @@ -48,9 +50,11 @@ m4_define([test_body], [ SHA1_Init(&sha1); #ifdef HAVE_OPENSSL RAND_status(); + UI_UTIL_read_pw_string(0,0,0,0); #endif - des_cbc_encrypt(0, 0, 0, schedule, 0, 0); + AES_encrypt(0,0,0); + DES_cbc_encrypt(0, 0, 0, schedule, 0, 0); RC4(0, 0, 0, 0);]) |