From fd39197e4ba4806f05eaa1a54293a11fe3066322 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 22 Dec 2021 14:28:42 -0700 Subject: [PATCH] retain same size for exported session --- src/internal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/internal.c b/src/internal.c index 65ac2d73b..b8b57918b 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1195,6 +1195,11 @@ static int ExportOptions(WOLFSSL* ssl, byte* exp, word32 len, byte ver, exp[idx++] = options->encThenMac; exp[idx++] = options->startedETMRead; exp[idx++] = options->startedETMWrite; +#else + exp[idx++] = 0; + exp[idx++] = 0; + exp[idx++] = 0; + exp[idx++] = 0; #endif } @@ -1373,6 +1378,11 @@ static int ImportOptions(WOLFSSL* ssl, const byte* exp, word32 len, byte ver, options->encThenMac = exp[idx++]; options->startedETMRead = exp[idx++]; options->startedETMWrite = exp[idx++]; +#else + idx++; + idx++; + idx++; + idx++; #endif }