mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 16:32:24 +01:00
Compat layer session tickets
- OpenSSL uses an internal mechanism by default for session tickets. This is now implemented for OPENSSL_EXTRA in wolfSSL. - Add testing of wolfSSL_CTX_set_tlsext_ticket_key_cb
This commit is contained in:
@@ -169,8 +169,14 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
||||
((defined(HAVE_CHACHA) && defined(HAVE_POLY1305)) || defined(HAVE_AESGCM))
|
||||
if (TicketInit() != 0)
|
||||
err_sys("unable to setup Session Ticket Key context");
|
||||
#ifdef OPENSSL_EXTRA
|
||||
/* In OpenSSL compat case, the compat layer handles the session
|
||||
* tickets internally by default */
|
||||
#elif ((defined(HAVE_CHACHA) && defined(HAVE_POLY1305)) || \
|
||||
defined(HAVE_AESGCM))
|
||||
wolfSSL_CTX_set_TicketEncCb(ctx, myTicketEncCb);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
if (doPSK == 0) {
|
||||
|
||||
@@ -1804,8 +1804,14 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
((defined(HAVE_CHACHA) && defined(HAVE_POLY1305)) || defined(HAVE_AESGCM))
|
||||
if (TicketInit() != 0)
|
||||
err_sys_ex(catastrophic, "unable to setup Session Ticket Key context");
|
||||
#ifdef OPENSSL_EXTRA
|
||||
/* In OpenSSL compat case, the compat layer handles the session
|
||||
* tickets internally by default */
|
||||
#elif ((defined(HAVE_CHACHA) && defined(HAVE_POLY1305)) || \
|
||||
defined(HAVE_AESGCM))
|
||||
wolfSSL_CTX_set_TicketEncCb(ctx, myTicketEncCb);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_SNIFFER) && defined(WOLFSSL_STATIC_EPHEMERAL)
|
||||
/* used for testing only to set a static/fixed ephemeral key
|
||||
|
||||
Reference in New Issue
Block a user