aboutsummaryrefslogtreecommitdiff
path: root/fuzz/ocsp_parse_ocsp_response_data_fuzzer.cc
blob: 99839d5c83316f5c0871f09ab4d9b5e211b76e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <stddef.h>
#include <stdint.h>

#include "../pki/ocsp.h"
#include "../pki/input.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  bssl::der::Input response_data_der(data, size);
  bssl::OCSPResponseData response_data;
  bssl::ParseOCSPResponseData(response_data_der, &response_data);

  return 0;
}