mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
retain same size for exported session
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user