summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha512t.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-05-22 08:55:15 +0000
committerAndy Polyakov <appro@openssl.org>2005-05-22 08:55:15 +0000
commit4b235065943259fb6f110e2b07624fa7c5ae5bd0 (patch)
tree6bfe0a31ac118ba721e18075de85c00d26ef52e7 /crypto/sha/sha512t.c
parent82d3dda8a1c598f326779b27ea22cf073ee23aed (diff)
OPENSSL_NO_SHA512 to mask even SHA512_CTX declaration. This is done to
make no-sha512 more effective on platforms, which don't support 64-bit integer type of *any* kind.
Diffstat (limited to 'crypto/sha/sha512t.c')
-rw-r--r--crypto/sha/sha512t.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/sha/sha512t.c b/crypto/sha/sha512t.c
index 7385469bee..4b7b3ceaa3 100644
--- a/crypto/sha/sha512t.c
+++ b/crypto/sha/sha512t.c
@@ -11,6 +11,14 @@
#include <openssl/evp.h>
#include <openssl/crypto.h>
+#if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA512)
+int main(int argc, char *argv[])
+{
+ printf("No SHA512 support\n");
+ return(0);
+}
+#else
+
unsigned char app_c1[SHA512_DIGEST_LENGTH] = {
0xdd,0xaf,0x35,0xa1,0x93,0x61,0x7a,0xba,
0xcc,0x41,0x73,0x49,0xae,0x20,0x41,0x31,
@@ -173,3 +181,4 @@ int main ()
return 0;
}
+#endif