1 #include <stdint.h> 2 #include "mbedtls/pkcs7.h" 3 LLVMFuzzerTestOneInput(const uint8_t * Data,size_t Size)4int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) 5 { 6 #ifdef MBEDTLS_PKCS7_C 7 mbedtls_pkcs7 pkcs7; 8 9 mbedtls_pkcs7_init(&pkcs7); 10 11 mbedtls_pkcs7_parse_der(&pkcs7, Data, Size); 12 13 mbedtls_pkcs7_free(&pkcs7); 14 #else 15 (void) Data; 16 (void) Size; 17 #endif 18 19 return 0; 20 } 21