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:
Moisés Guimarães
2014-09-30 09:24:42 -03:00
parent 6a75c8d144
commit a937040087
6 changed files with 237 additions and 31 deletions

View File

@@ -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