summaryrefslogtreecommitdiff
path: root/chromium/net/cert/internal/ocsp_parse_ocsp_response_fuzzer.cc
blob: f5dae65bd163ecc515e3fbc996f33a40e3cc6f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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 "net/cert/internal/ocsp.h"
#include "net/der/input.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  net::der::Input response_der(data, size);
  net::OCSPResponse response;
  net::ParseOCSPResponse(response_der, &response);

  return 0;
}