diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-05-15 18:49:25 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-05-15 18:49:25 +0000 |
commit | 544a2aea4ba1fad76f0802fb70d92a5a8e6ad85a (patch) | |
tree | 78036184a56a3bda4d7fcbf9161dac56ce8470fe /crypto/evp/evp_test.c | |
parent | 60e5f36d277b5b03d93e56f9893dd7ef6d3f75f0 (diff) |
Zero cipher_data in EVP_CIPHER_CTX_cleanup
Add cleanup calls to evp_test.c
Allow reuse of cipher contexts by removing
automatic cleanup in EVP_*Final().
Diffstat (limited to 'crypto/evp/evp_test.c')
-rw-r--r-- | crypto/evp/evp_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c index 3607fe7776..decd0713d6 100644 --- a/crypto/evp/evp_test.c +++ b/crypto/evp/evp_test.c @@ -209,6 +209,8 @@ static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn, exit(9); } + EVP_CIPHER_CTX_cleanup(&ctx); + printf("\n"); } @@ -279,6 +281,8 @@ static int test_digest(const char *digest, printf("\n"); + EVP_MD_CTX_cleanup(&ctx); + return 1; } |