summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-10-19 13:13:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-10-19 13:13:14 +0000
commitdb6e41f0edd4db082be96c58a3e72f3256086cd9 (patch)
treed0e8b4ce2d7badd38fa931612af927f12f1402bb
parent5b2b60ae9807b0980b00da7da7415c9b75931eea (diff)
PR: 2070
Submitted by: Alexander Nikitovskiy <Nikitovski@ya.ru> Approved by: steve@openssl.org Fix wrong cast.
-rw-r--r--engines/ccgost/gost_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost_crypt.c b/engines/ccgost/gost_crypt.c
index 39bb696446..9c9fed5a7b 100644
--- a/engines/ccgost/gost_crypt.c
+++ b/engines/ccgost/gost_crypt.c
@@ -371,7 +371,7 @@ static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out,
/* Cleaning up of EVP_CIPHER_CTX */
int gost_cipher_cleanup(EVP_CIPHER_CTX *ctx)
{
- gost_destroy((gost_ctx *)ctx->cipher_data);
+ gost_destroy(&((struct ossl_gost_cipher_ctx *)ctx->cipher_data)->cctx);
ctx->app_data = NULL;
return 1;
}