From 7f86c4d6a2697520b134be909c93f40894764a0b Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 17 Aug 2009 10:24:59 +0200 Subject: [PATCH] Add more EVP_MD symbols, don't depend on SHA1_Init/SHA256_Init --- cf/crypto.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cf/crypto.m4 b/cf/crypto.m4 index 48fa2f08c..a29b7648c 100644 --- a/cf/crypto.m4 +++ b/cf/crypto.m4 @@ -38,12 +38,13 @@ m4_define([test_headers], [ ]) m4_define([test_body], [ void *schedule = 0; - SHA_CTX sha1; - SHA256_CTX sha256; EVP_MD_CTX mdctx; - SHA1_Init(&sha1); - SHA256_Init(&sha256); + EVP_md4(); + EVP_md5(); + EVP_sha1(); + EVP_sha256(); + EVP_MD_CTX_init(&mdctx); EVP_DigestInit_ex(&mdctx, EVP_sha1(), (ENGINE *)0); EVP_CIPHER_iv_length(((EVP_CIPHER*)0));