Followup on RT3334 fix: make sure that a directory that's the empty
[openssl.git] / crypto / sha / sha256t.c
index 5c26ec86ef71ce9f6a11b10ce2736371716b35e3..6b4a3bd001bafcda54208f8c6109a3e8298b078f 100644 (file)
 #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,
@@ -46,7 +54,7 @@ unsigned char addenum_3[SHA224_DIGEST_LENGTH] = {
        0xf0,0x3f,0x42,0x58,0x19,0x48,0xb2,0xee,
        0x4e,0xe7,0xad,0x67 };
 
-int main ()
+int main (int argc,char **argv)
 { unsigned char md[SHA256_DIGEST_LENGTH];
   int          i;
   EVP_MD_CTX   evp;
@@ -136,3 +144,4 @@ int main ()
 
   return 0;
 }
+#endif