diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-12-15 20:11:18 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-12-16 01:08:22 +0100 |
commit | 4e9954799aaf6a9012603ed35b9168f2001e668d (patch) | |
tree | 082e2d650126e3389ec6541fdd7a8f525dff1ad4 /fuzz | |
parent | e104d01debba258ceed728ddf84d8cb3ef655d85 (diff) | |
download | openssl-4e9954799aaf6a9012603ed35b9168f2001e668d.tar.gz |
Make client and server fuzzer support all ciphers
Also send a SNI extension in the client so the fuzzer can react to it.
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2088
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/client.c | 2 | ||||
-rw-r--r-- | fuzz/server.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/client.c b/fuzz/client.c index 391e0cce9f..d4dffd7c3a 100644 --- a/fuzz/client.c +++ b/fuzz/client.c @@ -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); diff --git a/fuzz/server.c b/fuzz/server.c index 3b5df9dc42..c2c54b9e25 100644 --- a/fuzz/server.c +++ b/fuzz/server.c @@ -258,6 +258,8 @@ int FuzzerTestOneInput(const uint8_t *buf, size_t len) X509_free(cert); server = SSL_new(ctx); + ret = SSL_set_cipher_list(server, "ALL:eNULL:@SECLEVEL=0"); + OPENSSL_assert(ret == 1); in = BIO_new(BIO_s_mem()); out = BIO_new(BIO_s_mem()); SSL_set_bio(server, in, out); |