From 0f4216360e9d2215d6f68868d8519f6e9c9c92aa Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 26 Mar 2015 11:09:36 -0700 Subject: [PATCH] fix StoreExternalIV and SetInternalIV for 3DES --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 69d34055b..7d89ea916 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -7828,7 +7828,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) case DES_EDE3_CBC_TYPE : WOLFSSL_MSG("DES EDE3 CBC"); - memcpy(ctx->iv, &ctx->cipher.des.reg, DES_BLOCK_SIZE); + memcpy(ctx->iv, &ctx->cipher.des3.reg, DES_BLOCK_SIZE); break; #endif @@ -7889,7 +7889,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl) case DES_EDE3_CBC_TYPE : WOLFSSL_MSG("DES EDE3 CBC"); - memcpy(&ctx->cipher.des.reg, ctx->iv, DES_BLOCK_SIZE); + memcpy(&ctx->cipher.des3.reg, ctx->iv, DES_BLOCK_SIZE); break; #endif