1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <stddef.h>
6 #include <stdint.h>
7 
8 #include "base/macros.h"
9 #include "net/cert/internal/parse_certificate.h"
10 #include "net/der/input.h"
11 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)12 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
13   net::der::Input der(data, size);
14 
15   net::ParsedAuthorityKeyIdentifier authority_key_identifier;
16 
17   ignore_result(
18       net::ParseAuthorityKeyIdentifier(der, &authority_key_identifier));
19 
20   return 0;
21 }
22