aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-05-22 10:26:47 +0000
committerAndy Polyakov <appro@openssl.org>2005-05-22 10:26:47 +0000
commit36b29660ce6d648d6b7b3a5cb331879064a75d92 (patch)
treee50669b438caf795c1fc7e8ee0e4dbe5f32af569
parent4976983f304d52a05700c8875438bc640f249161 (diff)
downloadopenssl-36b29660ce6d648d6b7b3a5cb331879064a75d92.tar.gz
Be more consistent with OPENSSL_NO_SHA256.
-rw-r--r--crypto/sha/sha256t.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/sha/sha256t.c b/crypto/sha/sha256t.c
index 5c26ec86ef..68184b2582 100644
--- a/crypto/sha/sha256t.c
+++ b/crypto/sha/sha256t.c
@@ -10,6 +10,14 @@
#include <openssl/sha.h>
#include <openssl/evp.h>
+#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA256)
+int main(int argc, char *argv[])
+{
+ printf("No SHA256 support\n");
+ return(0);
+}
+#else
+
unsigned char app_b1[SHA256_DIGEST_LENGTH] = {
0xba,0x78,0x16,0xbf,0x8f,0x01,0xcf,0xea,
0x41,0x41,0x40,0xde,0x5d,0xae,0x22,0x23,
@@ -136,3 +144,4 @@ int main ()
return 0;
}
+#endif