From: Brian Inglis Date: Fri, 24 Feb 2017 19:33:50 +0000 (+0000) Subject: allow EVP_MD_do_all_sorted to be used on Windows with OpenSSL 1+ X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5398224e722bf542638b2604aa70bd84b10681ca;p=thirdparty%2Fntp.git allow EVP_MD_do_all_sorted to be used on Windows with OpenSSL 1+ bk: 58b08a9eaAVxIK377oPTqOU5dZtosg --- diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c index 86178fb5b..b74fbb62d 100644 --- a/ntpq/ntpq.c +++ b/ntpq/ntpq.c @@ -35,6 +35,12 @@ #include "openssl/evp.h" #include "openssl/objects.h" #include "openssl/err.h" +#ifdef SYS_WINNT +# include "openssl/opensslv.h" +# if !defined(HAVE_EVP_MD_DO_ALL_SORTED) && OPENSSL_VERSION_NUMBER > 0x10000000L +# define HAVE_EVP_MD_DO_ALL_SORTED 1 +# endif +#endif #include "libssl_compat.h" #define CMAC "AES128CMAC"