forked from wolfSSL/wolfssl
Adds Session Ticket TLS Extension handling.
New Session Ticket Handshake Message handling is still needed for Session Tickets to work.
This commit is contained in:
20
src/ssl.c
20
src/ssl.c
@@ -796,6 +796,26 @@ int CyaSSL_Rehandshake(CYASSL* ssl)
|
||||
|
||||
#endif /* HAVE_SECURE_RENEGOTIATION */
|
||||
|
||||
/* Session Ticket */
|
||||
#ifdef HAVE_SESSION_TICKET
|
||||
#ifndef NO_CYASSL_CLIENT
|
||||
int CyaSSL_UseSessionTicket(CYASSL* ssl)
|
||||
{
|
||||
if (ssl == NULL)
|
||||
return BAD_FUNC_ARG;
|
||||
|
||||
return TLSX_UseSessionTicket(&ssl->extensions, NULL);
|
||||
}
|
||||
|
||||
int CyaSSL_CTX_UseSessionTicket(CYASSL_CTX* ctx)
|
||||
{
|
||||
if (ctx == NULL)
|
||||
return BAD_FUNC_ARG;
|
||||
|
||||
return TLSX_UseSessionTicket(&ctx->extensions, NULL);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CYASSL_LEANPSK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user