check for DES_, AES_, and if openssl UI_

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12755 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-09-03 09:38:26 +00:00
parent 03f9a30177
commit ca12cabf2f

View File

@@ -11,9 +11,10 @@ m4_define([test_headers], [
#include <openssl/md4.h> #include <openssl/md4.h>
#include <openssl/md5.h> #include <openssl/md5.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#define OPENSSL_DES_LIBDES_COMPATIBILITY
#include <openssl/des.h> #include <openssl/des.h>
#include <openssl/rc4.h> #include <openssl/rc4.h>
#include <openssl/aes.h>
#include <openssl/ui.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#else #else
#include <md4.h> #include <md4.h>
@@ -21,6 +22,7 @@ m4_define([test_headers], [
#include <sha.h> #include <sha.h>
#include <des.h> #include <des.h>
#include <rc4.h> #include <rc4.h>
#include <aes.h>
#endif #endif
#ifdef OLD_HASH_NAMES #ifdef OLD_HASH_NAMES
typedef struct md4 MD4_CTX; typedef struct md4 MD4_CTX;
@@ -48,9 +50,11 @@ m4_define([test_body], [
SHA1_Init(&sha1); SHA1_Init(&sha1);
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
RAND_status(); RAND_status();
UI_UTIL_read_pw_string(0,0,0,0);
#endif #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);]) RC4(0, 0, 0, 0);])