X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fmd5%2Fmd5test.c;h=6bd86563020e1b871b286355b8a6c40866b76d99;hb=fc2e05c2d5c078d1fdf0ee56fc118ea471000a3a;hp=33b204f8e6b4a38772c3870eab2a98dbd86c87ee;hpb=6b691a5c85ddc4e407e32781841fee5c029506cd;p=oweals%2Fopenssl.git diff --git a/crypto/md5/md5test.c b/crypto/md5/md5test.c index 33b204f8e6..6bd8656302 100644 --- a/crypto/md5/md5test.c +++ b/crypto/md5/md5test.c @@ -59,9 +59,17 @@ #include #include #include -#include "md5.h" -char *test[]={ +#ifdef NO_MD5 +int main(int argc, char *argv[]) +{ + printf("No MD5 support\n"); + return(0); +} +#else +#include + +static char *test[]={ "", "a", "abc", @@ -72,7 +80,7 @@ char *test[]={ NULL, }; -char *ret[]={ +static char *ret[]={ "d41d8cd98f00b204e9800998ecf8427e", "0cc175b9c0f1b6a831c399e269772661", "900150983cd24fb0d6963f7d28e17f72", @@ -82,12 +90,7 @@ char *ret[]={ "57edf4a22be3c955ac49da2e2107b67a", }; -#ifndef NOPROTO static char *pt(unsigned char *md); -#else -static char *pt(); -#endif - int main(int argc, char *argv[]) { int i,err=0; @@ -125,3 +128,4 @@ static char *pt(unsigned char *md) sprintf(&(buf[i*2]),"%02x",md[i]); return(buf); } +#endif