summaryrefslogtreecommitdiffstats
path: root/comm/third_party/botan/src/fuzzer/tls_client_hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'comm/third_party/botan/src/fuzzer/tls_client_hello.cpp')
-rw-r--r--comm/third_party/botan/src/fuzzer/tls_client_hello.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/comm/third_party/botan/src/fuzzer/tls_client_hello.cpp b/comm/third_party/botan/src/fuzzer/tls_client_hello.cpp
new file mode 100644
index 0000000000..28c77c9b6d
--- /dev/null
+++ b/comm/third_party/botan/src/fuzzer/tls_client_hello.cpp
@@ -0,0 +1,18 @@
+/*
+* (C) 2015,2016 Jack Lloyd
+*
+* Botan is released under the Simplified BSD License (see license.txt)
+*/
+
+#include "fuzzers.h"
+#include <botan/tls_messages.h>
+
+void fuzz(const uint8_t in[], size_t len)
+ {
+ try
+ {
+ std::vector<uint8_t> v(in, in + len);
+ Botan::TLS::Client_Hello ch(v);
+ }
+ catch(Botan::Exception& e) {}
+ }