mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Fix for building without session-ticket
.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user