mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
don't mix declaration with code to satisfy compiler
This commit is contained in:
@@ -4975,6 +4975,7 @@ typedef struct Dsh13Args {
|
|||||||
byte sessIdSz;
|
byte sessIdSz;
|
||||||
byte extMsgType;
|
byte extMsgType;
|
||||||
#if defined(HAVE_ECH)
|
#if defined(HAVE_ECH)
|
||||||
|
TLSX* echX;
|
||||||
byte* acceptLabel;
|
byte* acceptLabel;
|
||||||
word32 acceptOffset;
|
word32 acceptOffset;
|
||||||
word16 acceptLabelSz;
|
word16 acceptLabelSz;
|
||||||
@@ -5421,14 +5422,13 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#if defined(HAVE_ECH)
|
#if defined(HAVE_ECH)
|
||||||
TLSX* echX = NULL;
|
|
||||||
/* check for acceptConfirmation and HashInput with 8 0 bytes */
|
/* check for acceptConfirmation and HashInput with 8 0 bytes */
|
||||||
if (ssl->options.useEch == 1) {
|
if (ssl->options.useEch == 1) {
|
||||||
echX = TLSX_Find(ssl->extensions, TLSX_ECH);
|
args->echX = TLSX_Find(ssl->extensions, TLSX_ECH);
|
||||||
/* account for hrr */
|
/* account for hrr */
|
||||||
if (args->extMsgType == hello_retry_request) {
|
if (args->extMsgType == hello_retry_request) {
|
||||||
args->acceptOffset =
|
args->acceptOffset =
|
||||||
(word32)(((WOLFSSL_ECH*)echX->data)->confBuf - input);
|
(word32)(((WOLFSSL_ECH*)args->echX->data)->confBuf - input);
|
||||||
args->acceptLabel = (byte*)echHrrAcceptConfirmationLabel;
|
args->acceptLabel = (byte*)echHrrAcceptConfirmationLabel;
|
||||||
args->acceptLabelSz = ECH_HRR_ACCEPT_CONFIRMATION_LABEL_SZ;
|
args->acceptLabelSz = ECH_HRR_ACCEPT_CONFIRMATION_LABEL_SZ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user