diff options
Diffstat (limited to 'examples/openssl/client.c')
-rw-r--r-- | examples/openssl/client.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/openssl/client.c b/examples/openssl/client.c index 3a395849..91cd3bc3 100644 --- a/examples/openssl/client.c +++ b/examples/openssl/client.c @@ -4,6 +4,9 @@ extern "C" { #endif +#include <hf_ssl_lib.h> +#include <libhfuzz/libhfuzz.h> + #include <assert.h> #include <openssl/err.h> #include <openssl/rand.h> @@ -12,9 +15,6 @@ extern "C" { #include <string.h> #include <unistd.h> -#include <hf_ssl_lib.h> -#include <libhfuzz/libhfuzz.h> - static const uint8_t kRSACertificateDER[] = {0x30, 0x82, 0x06, 0x3d, 0x30, 0x82, 0x04, 0x25, 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x14, 0x0f, 0x2d, 0x4d, 0xdd, 0x2f, 0xa5, 0xc0, 0x5f, 0x5a, 0xd3, 0x6e, 0x9f, 0xbe, 0x29, 0x68, 0xe9, 0x24, 0x72, 0x6c, 0xea, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, @@ -556,10 +556,8 @@ int LLVMFuzzerInitialize(int* argc, char*** argv) { #endif /* defined(HF_SSL_IS_BORINGSSL) */ SSL_CTX_set_ecdh_auto(ctx, 1); -#if defined(TLS1_3_VERSION) SSL_CTX_set_min_proto_version(ctx, SSL3_VERSION); SSL_CTX_set_max_proto_version(ctx, TLS1_3_VERSION); -#endif /* defined(TLS1_3_VERSION) */ SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_BOTH); SSL_CTX_set_timeout(ctx, 3); |