[openssh-commits] [openssh] 01/01: Wrap sha2.h include in ifdef.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 29 20:22:36 AEDT 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 2ff822eabd7d4461743f22d3b9ba35ab76069df5
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Nov 29 20:21:36 2019 +1100

    Wrap sha2.h include in ifdef.
    
    Fixes build --without-openssl on at least Fedora.
---
 hash.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hash.c b/hash.c
index d8b301d9..fb81e478 100644
--- a/hash.c
+++ b/hash.c
@@ -26,7 +26,9 @@ crypto_hash_sha512(unsigned char *out, const unsigned char *in,
 }
 
 #else
-#include <sha2.h>
+# ifdef HAVE_SHA2_H
+#  include <sha2.h>
+# endif
 
 int
 crypto_hash_sha512(unsigned char *out, const unsigned char *in,

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list