From fbc8b7a8cbf49845d8fe35ffa6e66bb2638437aa Mon Sep 17 00:00:00 2001 From: Viktor Dukhovni Date: Thu, 12 Apr 2018 23:20:52 -0400 Subject: [PATCH] Include for hardware SHA on Windows Fixes failure to build under Windows with Visual Studio 14. --- sshsh256.c | 4 ++++ sshsha.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sshsh256.c b/sshsh256.c index eefff7cf..9ffbc03b 100644 --- a/sshsh256.c +++ b/sshsh256.c @@ -413,6 +413,10 @@ int main(void) { #ifdef COMPILER_SUPPORTS_SHA_NI +#if defined _MSC_VER && defined _M_AMD64 +# include +#endif + /* * Set target architecture for Clang and GCC */ diff --git a/sshsha.c b/sshsha.c index c3ad9574..011ad8c2 100644 --- a/sshsha.c +++ b/sshsha.c @@ -470,6 +470,10 @@ const struct ssh_mac ssh_hmac_sha1_96_buggy = { #ifdef COMPILER_SUPPORTS_SHA_NI +#if defined _MSC_VER && defined _M_AMD64 +# include +#endif + /* * Set target architecture for Clang and GCC */