~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to src/fuzzer/tls_client_hello.cpp

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* (C) 2015,2016 Jack Lloyd
 
3
*
 
4
* Botan is released under the Simplified BSD License (see license.txt)
 
5
*/
 
6
 
 
7
#include "fuzzers.h"
 
8
#include <botan/tls_messages.h>
 
9
 
 
10
void fuzz(const uint8_t in[], size_t len)
 
11
   {
 
12
   try
 
13
      {
 
14
      std::vector<uint8_t> v(in, in + len);
 
15
      Botan::TLS::Client_Hello ch(v);
 
16
      }
 
17
   catch(Botan::Exception& e) {}
 
18
   }