summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-06-15 15:41:26 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-06-15 15:41:26 +0000
commitbec92d561121d5ecef68ad50ca8d28a369d7b71e (patch)
tree59929fefdbddf9faee8be2068234a0a846f129bb
parent555bb6c3edc1bc930d61f8456435eb06da7d0775 (diff)
Add missing OPENSSL_cleanse() in aead_aes_gcm_cleanup().
ok beck@ miod@
-rw-r--r--lib/libssl/src/crypto/evp/e_aes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/evp/e_aes.c b/lib/libssl/src/crypto/evp/e_aes.c
index 07b3469f427..8ee93c4bbd1 100644
--- a/lib/libssl/src/crypto/evp/e_aes.c
+++ b/lib/libssl/src/crypto/evp/e_aes.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_aes.c,v 1.20 2014/06/15 15:39:43 jsing Exp $ */
+/* $OpenBSD: e_aes.c,v 1.21 2014/06/15 15:41:25 jsing Exp $ */
/* ====================================================================
* Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved.
*
@@ -1323,6 +1323,7 @@ aead_aes_gcm_cleanup(EVP_AEAD_CTX *ctx)
{
struct aead_aes_gcm_ctx *gcm_ctx = ctx->aead_state;
+ OPENSSL_cleanse(gcm_ctx, sizeof(*gcm_ctx));
free(gcm_ctx);
}