Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2392,15 +2392,21 @@ static int test_wolfSSL_set_cipher_list_exclusions(void)
wolfSSL_free(ssl);
ssl = NULL;

#ifndef NO_ERROR_STRINGS
/* Report PoC #3: the suite named by its IANA name must also be dropped
* (classification is by suite bytes, independent of the input name form). */
* (classification is by suite bytes, independent of the input name form).
*
* Note, no IANA name support in NO_ERROR_STRINGS builds (see struct
* CipherSuiteInfo definition in internal.h).
*/
ExpectNotNull(ssl = wolfSSL_new(ctx));
ExpectIntEQ(wolfSSL_set_cipher_list(ssl,
"TLS_DH_anon_WITH_AES_128_CBC_SHA:!aNULL"), WOLFSSL_FAILURE);
ExpectIntEQ(test_suites_contains(ssl, CIPHER_BYTE,
TLS_DH_anon_WITH_AES_128_CBC_SHA), 0);
wolfSSL_free(ssl);
ssl = NULL;
#endif /* NO_ERROR_STRINGS */

#ifdef BUILD_TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
/* Mixed list: the authenticated suite survives, only ADH is removed. */
Expand Down
Loading