diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-22 21:25:36 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-22 21:25:36 +0000 |
commit | fcb76baeb04bb961e8bbc44b81ecdfc2f27dddf4 (patch) | |
tree | bae614fe32a3ffaa21dfc29fe4ef54fab463051e /crypto/des/destest.c | |
parent | 4486d0cd7a715aed7ca3728aa24413d91666bb68 (diff) |
fail on all errors.
Diffstat (limited to 'crypto/des/destest.c')
-rw-r--r-- | crypto/des/destest.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |