1 /*
2  * Testing tool for X.509v3 routines
3  * Copyright (c) 2006-2019, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #include "includes.h"
10 
11 #include "common.h"
12 #include "tls/x509v3.h"
13 #include "../fuzzer-common.h"
14 
15 
LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)16 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
17 {
18 	struct x509_certificate *cert;
19 
20 	wpa_fuzzer_set_debug_level();
21 
22 	cert = x509_certificate_parse(data, size);
23 	x509_certificate_free(cert);
24 	return 0;
25 }
26