forked from wolfSSL/wolfssl
Merge pull request #5881 from anhu/warn_session_ticket
Warn that renegotiation in TLS 1.3 requires session ticket.
This commit is contained in:
@ -2772,6 +2772,12 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HAVE_SESSION_TICKET
|
||||||
|
if ((version >= 4) && resumeSession) {
|
||||||
|
fprintf(stderr, "Can't do TLS 1.3 resumption; need session tickets!\n");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WNR
|
#ifdef HAVE_WNR
|
||||||
if (wc_InitNetRandom(wnrConfigFile, NULL, 5000) != 0)
|
if (wc_InitNetRandom(wnrConfigFile, NULL, 5000) != 0)
|
||||||
err_sys("can't load whitewood net random config file");
|
err_sys("can't load whitewood net random config file");
|
||||||
|
@ -2302,6 +2302,12 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef HAVE_SESSION_TICKET
|
||||||
|
if ((version >= 4) && resume) {
|
||||||
|
fprintf(stderr, "Can't do TLS 1.3 resumption; need session tickets!\n");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WNR
|
#ifdef HAVE_WNR
|
||||||
if (wc_InitNetRandom(wnrConfigFile, NULL, 5000) != 0)
|
if (wc_InitNetRandom(wnrConfigFile, NULL, 5000) != 0)
|
||||||
err_sys_ex(runWithErrors, "can't load whitewood net random config "
|
err_sys_ex(runWithErrors, "can't load whitewood net random config "
|
||||||
|
Reference in New Issue
Block a user