]> andersk Git - openssh.git/blobdiff - openbsd-compat/sha2.c
Oops, forgot to document second change to roaming_client.c
[openssh.git] / openbsd-compat / sha2.c
index d04fb25f7c66db7749b8e01d18c33b9413405709..cf8e0ad667ba68b59b9db3c34f1d11afdab55237 100755 (executable)
 
 #include "includes.h"
 
-#if !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256)
+#include <openssl/opensslv.h>
+
+#if !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \
+    (OPENSSL_VERSION_NUMBER >= 0x00907000L)
 #include <sys/types.h>
 #include <string.h>
 #include "sha2.h"
@@ -835,6 +838,7 @@ SHA512_Final(u_int8_t digest[SHA512_DIGEST_LENGTH], SHA512_CTX *context)
 }
 
 
+#if 0
 /*** SHA-384: *********************************************************/
 void
 SHA384_Init(SHA384_CTX *context)
@@ -872,5 +876,7 @@ SHA384_Final(u_int8_t digest[SHA384_DIGEST_LENGTH], SHA384_CTX *context)
        /* Zero out state data */
        memset(context, 0, sizeof(*context));
 }
+#endif
 
-#endif /* !defined(HAVE_SHA256_UPDATE) && !defined(HAVE_EVP_SHA256) */
+#endif /* !defined(HAVE_EVP_SHA256) && !defined(HAVE_SHA256_UPDATE) && \
+    (OPENSSL_VERSION_NUMBER >= 0x00907000L) */
This page took 0.033427 seconds and 4 git commands to generate.