diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-22 20:29:56 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-22 20:29:56 +0000 |
commit | 34e75fab57c6820be803c050a10acc73d2d4d4e3 (patch) | |
tree | 66db71c0a88dbe914032158d02a84d7df6695313 /usr.bin | |
parent | a09c37be4f9cef6602fde6a56cae40cd9d274a2f (diff) |
EVP_CIPHER_CTX_cleanup() for the des contexts; pruiksma@freesurf.fr
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/cipher-3des1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/ssh/cipher-3des1.c b/usr.bin/ssh/cipher-3des1.c index 811eec42796..a46d0edc0a1 100644 --- a/usr.bin/ssh/cipher-3des1.c +++ b/usr.bin/ssh/cipher-3des1.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: cipher-3des1.c,v 1.1 2003/05/15 03:08:29 markus Exp $"); +RCSID("$OpenBSD: cipher-3des1.c,v 1.2 2003/12/22 20:29:55 markus Exp $"); #include <openssl/evp.h> #include "xmalloc.h" @@ -110,6 +110,9 @@ ssh1_3des_cleanup(EVP_CIPHER_CTX *ctx) struct ssh1_3des_ctx *c; if ((c = EVP_CIPHER_CTX_get_app_data(ctx)) != NULL) { + EVP_CIPHER_CTX_cleanup(&c->k1); + EVP_CIPHER_CTX_cleanup(&c->k2); + EVP_CIPHER_CTX_cleanup(&c->k3); memset(c, 0, sizeof(*c)); xfree(c); EVP_CIPHER_CTX_set_app_data(ctx, NULL); |