X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fsha%2Fsha256t.c;h=6b4a3bd001bafcda54208f8c6109a3e8298b078f;hb=7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c;hp=5c26ec86ef71ce9f6a11b10ce2736371716b35e3;hpb=968c31bd84943694e31b5b6ff8865d3179a3c1de;p=oweals%2Fopenssl.git diff --git a/crypto/sha/sha256t.c b/crypto/sha/sha256t.c index 5c26ec86ef..6b4a3bd001 100644 --- a/crypto/sha/sha256t.c +++ b/crypto/sha/sha256t.c @@ -10,6 +10,14 @@ #include #include +#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