Fix for "testsuite" with TLSv1.3 and --enable-sniffer.

This commit is contained in:
David Garske
2020-05-12 09:51:20 -07:00
parent ba8227bcf7
commit 8300754ecd
3 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -227,8 +227,11 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
#endif
#if defined(CYASSL_SNIFFER)
/* don't use EDH, can't sniff tmp keys */
CyaSSL_CTX_set_cipher_list(ctx, "AES256-SHA");
/* Only set if not running testsuite */
if (XSTRNCMP(argv[0], "testsuite", XSTRLEN("testsuite")) != 0) {
/* don't use EDH, can't sniff tmp keys */
CyaSSL_CTX_set_cipher_list(ctx, "AES256-SHA");
}
#endif
if (doPSK) {