Make client and server fuzzer support all ciphers
[openssl.git] / fuzz / client.c
index 391e0cce9fae2e4d681d4c30daf5e5400ea2f1e6..d4dffd7c3ae294cffe2fd9ad8cfac523bcc590d9 100644 (file)
@@ -63,6 +63,8 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len)
     ctx = SSL_CTX_new(SSLv23_method());
 
     client = SSL_new(ctx);
+    OPENSSL_assert(SSL_set_cipher_list(client, "ALL:eNULL:@SECLEVEL=0") == 1);
+    SSL_set_tlsext_host_name(client, "localhost");
     in = BIO_new(BIO_s_mem());
     out = BIO_new(BIO_s_mem());
     SSL_set_bio(client, in, out);