]> andersk Git - openssh.git/blobdiff - md-sha256.c
- tedu@cvs.openbsd.org 2010/01/17 21:49:09
[openssh.git] / md-sha256.c
index 0b1ed5828964f2726e2eabb5ddf1d0ba804ff899..8c1b3b92da9b33b3d32bed4ff5d2739e7b4efe9b 100644 (file)
@@ -1,3 +1,4 @@
+/* $OpenBSD: md-sha256.c,v 1.5 2006/08/03 03:34:42 deraadt Exp $ */
 /*
  * Copyright (c) 2005 Damien Miller <djm@openbsd.org>
  *
 
 #include "includes.h"
 
-#ifndef HAVE_EVP_SHA256
+#include <sys/types.h>
+#include <openssl/opensslv.h>
+
+#if !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L)
 
 #include <string.h>
 #include <openssl/evp.h>
@@ -30,8 +34,6 @@
 # endif
 #endif
 
-RCSID("$OpenBSD: md-sha256.c,v 1.1 2006/03/07 09:07:40 djm Exp $");
-
 const EVP_MD *evp_ssh_sha256(void);
 
 static int
@@ -80,5 +82,5 @@ evp_ssh_sha256(void)
        return (&ssh_sha256);
 }
 
-#endif /* HAVE_EVP_SHA256 */
+#endif /* !defined(HAVE_EVP_SHA256) && (OPENSSL_VERSION_NUMBER >= 0x00907000L) */
 
This page took 0.268228 seconds and 4 git commands to generate.