Added a callback when receiving a NewSessionTicket handshake message.

This commit is contained in:
John Safranek
2014-10-20 09:25:14 -07:00
parent 60790ee4ae
commit 35bcc98948
5 changed files with 53 additions and 1 deletions

View File

@@ -848,6 +848,19 @@ CYASSL_API int CyaSSL_set_SessionTicket(CYASSL* ssl, byte* buf, word32 bufSz)
return SSL_SUCCESS;
}
CYASSL_API int CyaSSL_set_SessionTicket_cb(CYASSL* ssl,
CallbackSessionTicket cb, void* ctx)
{
if (ssl == NULL)
return BAD_FUNC_ARG;
ssl->session_ticket_cb = cb;
ssl->session_ticket_ctx = ctx;
return SSL_SUCCESS;
}
#endif
#ifndef CYASSL_LEANPSK