diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-22 22:25:36 +0100 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-22 22:25:36 +0100 |
commit | fcb76baeb04bb961e8bbc44b81ecdfc2f27dddf4 (patch) | |
tree | bae614fe32a3ffaa21dfc29fe4ef54fab463051e /crypto/des/destest.c | |
parent | Document the DH library, and make some minor changes along the way. (diff) | |
download | openssl-fcb76baeb04bb961e8bbc44b81ecdfc2f27dddf4.tar.xz openssl-fcb76baeb04bb961e8bbc44b81ecdfc2f27dddf4.zip |
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) |