check DTLS method for test case

pull/5943/head
Jacob Barthelmeh 2022-12-29 15:49:46 -07:00
parent 251b89631e
commit aab12fc14b
1 changed files with 4 additions and 1 deletions

View File

@ -6510,7 +6510,10 @@ static THREAD_RETURN WOLFSSL_THREAD run_wolfssl_server(void* args)
wolfSSL_CTX_set_default_passwd_cb(ctx, PasswordCallBack);
#endif
#if defined(WOLFSSL_SESSION_EXPORT) && defined(WOLFSSL_DTLS)
AssertIntEQ(WOLFSSL_SUCCESS, wolfSSL_CTX_dtls_set_export(ctx, test_export));
if (callbacks->method == wolfDTLSv1_2_server_method) {
AssertIntEQ(WOLFSSL_SUCCESS,
wolfSSL_CTX_dtls_set_export(ctx, test_export));
}
#endif