]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
allow EVP_MD_do_all_sorted to be used on Windows with OpenSSL 1+
authorBrian Inglis <bwi@ntp.org>
Fri, 24 Feb 2017 19:33:50 +0000 (19:33 +0000)
committerBrian Inglis <bwi@ntp.org>
Fri, 24 Feb 2017 19:33:50 +0000 (19:33 +0000)
bk: 58b08a9eaAVxIK377oPTqOU5dZtosg

ntpq/ntpq.c

index 86178fb5babe83aba1b21af4fb85a6c8821b5d19..b74fbb62d41839456c2af39398cdecddb6ecd959 100644 (file)
 #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"