]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Check for EVP_md2 - Some redhat distros have lost it, too.
authorHarlan Stenn <stenn@ntp.org>
Fri, 30 Nov 2001 05:56:47 +0000 (00:56 -0500)
committerHarlan Stenn <stenn@ntp.org>
Fri, 30 Nov 2001 05:56:47 +0000 (00:56 -0500)
bk: 3c071f9fx6jbkPDnTBq4t_wMvWwO8g

configure.in
util/genkeys.c

index bd0c2118c176964146b4b43bc6e79ba94053059a..07c80addbdbba3c41d75b661edc2d2f54ddd5e76 100644 (file)
@@ -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
index 46a478eb2d81734e027debdb5e77a089ed01807b..f16668c98fe4e04c2184d4ed2272147c2b58f707 100644 (file)
@@ -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());