Update examples to allow post quantum KEM within DTLS 1.3

pull/5518/head
CallumMcLoughlin 2022-08-30 18:39:57 +12:00
parent 91d3cd7111
commit 565d1b33e5
No known key found for this signature in database
GPG Key ID: B1AF67B95FE4C01C
2 changed files with 5 additions and 5 deletions

View File

@ -2838,8 +2838,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
fprintf(stderr,
"WARNING: If a TLS 1.3 connection is not negotiated, you "
"will not be using a post-quantum group.\n");
else if (version != 4)
err_sys("can only use post-quantum groups with TLS 1.3");
else if (version != 4 && version != -4)
err_sys("can only use post-quantum groups with TLS 1.3 or DTLS 1.3");
}
#endif

View File

@ -2368,8 +2368,8 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
fprintf(stderr,
"WARNING: If a TLS 1.3 connection is not negotiated, you "
"will not be using a post-quantum group.\n");
} else if (version != 4) {
err_sys("can only use post-quantum groups with TLS 1.3");
} else if (version != 4 && version != -4) {
err_sys("can only use post-quantum groups with TLS 1.3 or DTLS 1.3");
}
}
#endif
@ -3104,7 +3104,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
#endif
#if defined(WOLFSSL_TLS13) && defined(HAVE_SUPPORTED_CURVES)
if (version >= 4) {
if (version >= 4 || version == -4) {
#ifdef CAN_FORCE_CURVE
if (force_curve_group_id > 0) {
do {