From fcb76baeb04bb961e8bbc44b81ecdfc2f27dddf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulf=20M=C3=B6ller?= Date: Sat, 22 Jan 2000 21:25:36 +0000 Subject: [PATCH] fail on all errors. --- crypto/des/destest.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/des/destest.c b/crypto/des/destest.c index 7efd83dc30..d84676df42 100644 --- a/crypto/des/destest.c +++ b/crypto/des/destest.c @@ -449,7 +449,10 @@ int main(int argc, char *argv[]) des_ncbc_encrypt(cbc_data,cbc_out,strlen((char *)cbc_data)+1,ks, &iv3,DES_ENCRYPT); if (memcmp(cbc_out,cbc_ok,32) != 0) + { printf("cbc_encrypt encrypt error\n"); + err=1; + } memcpy(iv3,cbc_iv,sizeof(cbc_iv)); des_ncbc_encrypt(cbc_out,cbc_in,strlen((char *)cbc_data)+1,ks, @@ -475,6 +478,7 @@ int main(int argc, char *argv[]) if (memcmp(cbc_out,xcbc_ok,32) != 0) { printf("des_xcbc_encrypt encrypt error\n"); + err=1; } memcpy(iv3,cbc_iv,sizeof(cbc_iv)); des_xcbc_encrypt(cbc_out,cbc_in,strlen((char *)cbc_data)+1,ks, @@ -781,7 +785,6 @@ plain[8+4], plain[8+5], plain[8+6], plain[8+7]); } printf("\n"); exit(err); - return(0); } static char *pt(unsigned char *p) -- 2.25.1