diff options
author | Robert Swiecki <robert@swiecki.net> | 2017-11-15 15:45:03 +0100 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2017-11-15 15:45:03 +0100 |
commit | 12e5b98ecff33216f560f01d61cec03a3c08fd28 (patch) | |
tree | 792e5a21fa23d8731eee550bf8693f85e31d79cf /examples/openssl/client.c | |
parent | 61c357acb4fd6a25d584d9d76590071fd8434997 (diff) | |
download | honggfuzz-12e5b98ecff33216f560f01d61cec03a3c08fd28.tar.gz |
examples/openssl: refreshed server corpus
Diffstat (limited to 'examples/openssl/client.c')
-rw-r--r-- | examples/openssl/client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/openssl/client.c b/examples/openssl/client.c index 4b42b1a1..5d4608af 100644 --- a/examples/openssl/client.c +++ b/examples/openssl/client.c @@ -548,16 +548,14 @@ int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) { SSL_set_dh_auto(client, 1); SSL_set_max_early_data(client, 1024); - size_t sz; for (;;) { + size_t sz; uint8_t edata_rbuf[128]; if (SSL_read_early_data(client, edata_rbuf, sizeof(edata_rbuf), &sz) != SSL_READ_EARLY_DATA_SUCCESS) { break; } } - static const uint8_t edata_wbuf[128] = {1, 2, 3}; - SSL_write_early_data(client, edata_wbuf, sizeof(edata_wbuf), &sz); #endif // defined(HF_SSL_IS_OPENSSL_GE_1_1) /* Try it two times to test SSL_clear() */ |