X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fidea%2Fideatest.c;h=e6ffc7025e75db4ceb38852fea7c0a652bee671e;hb=cec2af75102df52c2f270b3751e3487f47fccb6c;hp=542ece4aa3da0e05df568497709a3753c0e030ce;hpb=6b691a5c85ddc4e407e32781841fee5c029506cd;p=oweals%2Fopenssl.git diff --git a/crypto/idea/ideatest.c b/crypto/idea/ideatest.c index 542ece4aa3..e6ffc7025e 100644 --- a/crypto/idea/ideatest.c +++ b/crypto/idea/ideatest.c @@ -59,7 +59,17 @@ #include #include #include -#include "idea.h" + +#include "../e_os.h" + +#ifdef OPENSSL_NO_IDEA +int main(int argc, char *argv[]) +{ + printf("No IDEA support\n"); + return(0); +} +#else +#include unsigned char k[16]={ 0x00,0x01,0x00,0x02,0x00,0x03,0x00,0x04, @@ -95,14 +105,8 @@ static unsigned char cfb_cipher64[CFB_TEST_SIZE]={ 0x3D,0x1E,0xAE,0x47,0xFC,0xCF,0x29,0x0B,*/ }; -#ifndef NOPROTO static int cfb64_test(unsigned char *cfb_cipher); static char *pt(unsigned char *p); -#else -static int cfb64_test(); -static char *pt(); -#endif - int main(int argc, char *argv[]) { int i,err=0; @@ -165,7 +169,10 @@ int main(int argc, char *argv[]) else printf("ok\n"); - exit(err); +#ifdef OPENSSL_SYS_NETWARE + if (err) printf("ERROR: %d\n", err); +#endif + EXIT(err); return(err); } @@ -225,4 +232,4 @@ static char *pt(unsigned char *p) ret[16]='\0'; return(ret); } - +#endif