Loading crypto/bf/bftest.c +3 −1 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ #include <string.h> #include <stdlib.h> #include "../e_os.h" #ifdef NO_BF int main(int argc, char *argv[]) { Loading Loading @@ -275,7 +277,7 @@ int main(int argc, char *argv[]) else ret=test(); exit(ret); EXIT(ret); return(0); } Loading crypto/bn/bntest.c +6 −6 Original line number Diff line number Diff line Loading @@ -139,10 +139,10 @@ int main(int argc, char *argv[]) ctx=BN_CTX_new(); if (ctx == NULL) exit(1); if (ctx == NULL) EXIT(1); out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); if (outfile == NULL) { BIO_set_fp(out,stdout,BIO_NOCLOSE); Loading @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) if (!BIO_write_filename(out,outfile)) { perror(outfile); exit(1); EXIT(1); } } Loading Loading @@ -228,14 +228,14 @@ int main(int argc, char *argv[]) BIO_free(out); /**/ exit(0); EXIT(0); err: BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices * the failure, see test_bn in test/Makefile.ssl*/ BIO_flush(out); ERR_load_crypto_strings(); ERR_print_errors_fp(stderr); exit(1); EXIT(1); return(1); } Loading Loading @@ -746,7 +746,7 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx) while ((l=ERR_get_error())) fprintf(stderr,"ERROR:%s\n", ERR_error_string(l,NULL)); exit(1); EXIT(1); } if (bp != NULL) { Loading crypto/bn/exptest.c +11 −8 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../e_os.h" #include <openssl/bio.h> #include <openssl/bn.h> #include <openssl/rand.h> Loading Loading @@ -86,7 +89,7 @@ int main(int argc, char *argv[]) ERR_load_BN_strings(); ctx=BN_CTX_new(); if (ctx == NULL) exit(1); if (ctx == NULL) EXIT(1); r_mont=BN_new(); r_recp=BN_new(); r_simple=BN_new(); Loading @@ -99,7 +102,7 @@ int main(int argc, char *argv[]) out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); for (i=0; i<200; i++) Loading @@ -124,7 +127,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_mont() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } ret=BN_mod_exp_recp(r_recp,a,b,m,ctx); Loading @@ -132,7 +135,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_recp() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } ret=BN_mod_exp_simple(r_simple,a,b,m,ctx); Loading @@ -140,7 +143,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_simple() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } if (BN_cmp(r_simple, r_mont) == 0 Loading @@ -163,7 +166,7 @@ int main(int argc, char *argv[]) printf("\nrecp ="); BN_print(out,r_recp); printf("\nmont ="); BN_print(out,r_mont); printf("\n"); exit(1); EXIT(1); } } BN_free(r_mont); Loading @@ -177,11 +180,11 @@ int main(int argc, char *argv[]) CRYPTO_mem_leaks(out); BIO_free(out); printf(" done\n"); exit(0); EXIT(0); err: ERR_load_crypto_strings(); ERR_print_errors(out); exit(1); EXIT(1); return(1); } crypto/cast/casttest.c +3 −1 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ #include <string.h> #include <stdlib.h> #include "../e_os.h" #ifdef NO_CAST int main(int argc, char *argv[]) { Loading Loading @@ -224,7 +226,7 @@ int main(int argc, char *argv[]) } #endif exit(err); EXIT(err); return(err); } #endif crypto/dh/dhtest.c +5 −2 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../e_os.h" #ifdef WINDOWS #include "../bio/bss_file.c" #endif Loading Loading @@ -107,7 +110,7 @@ int main(int argc, char *argv[]) RAND_seed(rnd_seed, sizeof rnd_seed); out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out); Loading Loading @@ -188,7 +191,7 @@ err: if(b != NULL) DH_free(b); if(a != NULL) DH_free(a); BIO_free(out); exit(ret); EXIT(ret); return(ret); } Loading Loading
crypto/bf/bftest.c +3 −1 Original line number Diff line number Diff line Loading @@ -63,6 +63,8 @@ #include <string.h> #include <stdlib.h> #include "../e_os.h" #ifdef NO_BF int main(int argc, char *argv[]) { Loading Loading @@ -275,7 +277,7 @@ int main(int argc, char *argv[]) else ret=test(); exit(ret); EXIT(ret); return(0); } Loading
crypto/bn/bntest.c +6 −6 Original line number Diff line number Diff line Loading @@ -139,10 +139,10 @@ int main(int argc, char *argv[]) ctx=BN_CTX_new(); if (ctx == NULL) exit(1); if (ctx == NULL) EXIT(1); out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); if (outfile == NULL) { BIO_set_fp(out,stdout,BIO_NOCLOSE); Loading @@ -152,7 +152,7 @@ int main(int argc, char *argv[]) if (!BIO_write_filename(out,outfile)) { perror(outfile); exit(1); EXIT(1); } } Loading Loading @@ -228,14 +228,14 @@ int main(int argc, char *argv[]) BIO_free(out); /**/ exit(0); EXIT(0); err: BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices * the failure, see test_bn in test/Makefile.ssl*/ BIO_flush(out); ERR_load_crypto_strings(); ERR_print_errors_fp(stderr); exit(1); EXIT(1); return(1); } Loading Loading @@ -746,7 +746,7 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx) while ((l=ERR_get_error())) fprintf(stderr,"ERROR:%s\n", ERR_error_string(l,NULL)); exit(1); EXIT(1); } if (bp != NULL) { Loading
crypto/bn/exptest.c +11 −8 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../e_os.h" #include <openssl/bio.h> #include <openssl/bn.h> #include <openssl/rand.h> Loading Loading @@ -86,7 +89,7 @@ int main(int argc, char *argv[]) ERR_load_BN_strings(); ctx=BN_CTX_new(); if (ctx == NULL) exit(1); if (ctx == NULL) EXIT(1); r_mont=BN_new(); r_recp=BN_new(); r_simple=BN_new(); Loading @@ -99,7 +102,7 @@ int main(int argc, char *argv[]) out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); for (i=0; i<200; i++) Loading @@ -124,7 +127,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_mont() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } ret=BN_mod_exp_recp(r_recp,a,b,m,ctx); Loading @@ -132,7 +135,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_recp() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } ret=BN_mod_exp_simple(r_simple,a,b,m,ctx); Loading @@ -140,7 +143,7 @@ int main(int argc, char *argv[]) { printf("BN_mod_exp_simple() problems\n"); ERR_print_errors(out); exit(1); EXIT(1); } if (BN_cmp(r_simple, r_mont) == 0 Loading @@ -163,7 +166,7 @@ int main(int argc, char *argv[]) printf("\nrecp ="); BN_print(out,r_recp); printf("\nmont ="); BN_print(out,r_mont); printf("\n"); exit(1); EXIT(1); } } BN_free(r_mont); Loading @@ -177,11 +180,11 @@ int main(int argc, char *argv[]) CRYPTO_mem_leaks(out); BIO_free(out); printf(" done\n"); exit(0); EXIT(0); err: ERR_load_crypto_strings(); ERR_print_errors(out); exit(1); EXIT(1); return(1); }
crypto/cast/casttest.c +3 −1 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ #include <string.h> #include <stdlib.h> #include "../e_os.h" #ifdef NO_CAST int main(int argc, char *argv[]) { Loading Loading @@ -224,7 +226,7 @@ int main(int argc, char *argv[]) } #endif exit(err); EXIT(err); return(err); } #endif
crypto/dh/dhtest.c +5 −2 Original line number Diff line number Diff line Loading @@ -59,6 +59,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../e_os.h" #ifdef WINDOWS #include "../bio/bss_file.c" #endif Loading Loading @@ -107,7 +110,7 @@ int main(int argc, char *argv[]) RAND_seed(rnd_seed, sizeof rnd_seed); out=BIO_new(BIO_s_file()); if (out == NULL) exit(1); if (out == NULL) EXIT(1); BIO_set_fp(out,stdout,BIO_NOCLOSE); a=DH_generate_parameters(64,DH_GENERATOR_5,cb,out); Loading Loading @@ -188,7 +191,7 @@ err: if(b != NULL) DH_free(b); if(a != NULL) DH_free(a); BIO_free(out); exit(ret); EXIT(ret); return(ret); } Loading