summaryrefslogtreecommitdiff
path: root/chromium/net/cert/pki/ocsp_parse_ocsp_cert_id_fuzzer.cc
blob: 1d23453d0b5f95ff0d7642550b1456225c97806f (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/pki/ocsp.h"
#include "net/der/input.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  net::der::Input cert_id_der(data, size);
  net::OCSPCertID cert_id;
  net::ParseOCSPCertID(cert_id_der, &cert_id);

  return 0;
}