From: Harlan Stenn Date: Fri, 30 Nov 2001 05:56:47 +0000 (-0500) Subject: Check for EVP_md2 - Some redhat distros have lost it, too. X-Git-Tag: NTP_4_1_72~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f0793d5ec80b4a2ee173187a4cc925b93aef104b;p=thirdparty%2Fntp.git Check for EVP_md2 - Some redhat distros have lost it, too. bk: 3c071f9fx6jbkPDnTBq4t_wMvWwO8g --- diff --git a/configure.in b/configure.in index bd0c2118c1..07c80addbd 100644 --- a/configure.in +++ b/configure.in @@ -2397,7 +2397,7 @@ case "$ans" in LIBS="$LIBS -lcrypto" AC_DEFINE(OPENSSL, , [Use OpenSSL?]) AC_DEFINE(PUBKEY, , [Public key?]) - AC_CHECK_FUNCS(EVP_mdc2) + AC_CHECK_FUNCS(EVP_md2 EVP_mdc2) fi ;; esac diff --git a/util/genkeys.c b/util/genkeys.c index 46a478eb2d..f16668c98f 100644 --- a/util/genkeys.c +++ b/util/genkeys.c @@ -174,7 +174,9 @@ main( * that work with RSA are MD2, MD5, SHA, SHA1, MDC2 and * RIPEMD160. */ +#ifdef HAVE_EVP_MD2 x509("RSA_MD2", pkey, EVP_md2()); +#endif x509("RSA_MD5", pkey, EVP_md5()); x509("RSA_SHA", pkey, EVP_sha()); x509("RSA_SHA1", pkey, EVP_sha1());