mirror of https://github.com/wolfSSL/wolfssl.git
Fix for building without `session-ticket`.
parent
e15e0828bf
commit
9409d8682f
|
@ -2519,10 +2519,12 @@ static int ProcessSessionTicket(const byte* input, int* sslBytes,
|
||||||
}
|
}
|
||||||
input += OPAQUE8_LEN;
|
input += OPAQUE8_LEN;
|
||||||
*sslBytes -= OPAQUE8_LEN;
|
*sslBytes -= OPAQUE8_LEN;
|
||||||
|
#ifdef HAVE_SESSION_TICKET
|
||||||
/* store nonce in server for DeriveResumptionPSK */
|
/* store nonce in server for DeriveResumptionPSK */
|
||||||
session->sslServer->session.ticketNonce.len = len;
|
session->sslServer->session.ticketNonce.len = len;
|
||||||
if (len > 0)
|
if (len > 0)
|
||||||
XMEMCPY(&session->sslServer->session.ticketNonce.data, input, len);
|
XMEMCPY(&session->sslServer->session.ticketNonce.data, input, len);
|
||||||
|
#endif
|
||||||
input += len;
|
input += len;
|
||||||
*sslBytes -= len;
|
*sslBytes -= len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue