From 6cb005bb98154d6307cf0e81b500fd43541a88cb Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Sun, 15 Jun 2014 15:41:26 +0000 Subject: Add missing OPENSSL_cleanse() in aead_aes_gcm_cleanup(). ok beck@ miod@ --- lib/libcrypto/evp/e_aes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libcrypto') diff --git a/lib/libcrypto/evp/e_aes.c b/lib/libcrypto/evp/e_aes.c index 07b3469f427..8ee93c4bbd1 100644 --- a/lib/libcrypto/evp/e_aes.c +++ b/lib/libcrypto/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); } -- cgit v1.2.3