2020-11-03 21:07:21 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include "mbedtls/pkcs7.h"
|
|
|
|
|
2023-01-11 13:50:10 +00:00
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
|
|
|
|
{
|
2020-11-03 21:07:21 +00:00
|
|
|
#ifdef MBEDTLS_PKCS7_C
|
|
|
|
mbedtls_pkcs7 pkcs7;
|
|
|
|
|
2023-01-11 13:50:10 +00:00
|
|
|
mbedtls_pkcs7_init(&pkcs7);
|
2020-11-03 21:07:21 +00:00
|
|
|
|
2023-01-11 13:50:10 +00:00
|
|
|
mbedtls_pkcs7_parse_der(&pkcs7, Data, Size);
|
2020-11-03 21:07:21 +00:00
|
|
|
|
2023-01-11 13:50:10 +00:00
|
|
|
mbedtls_pkcs7_free(&pkcs7);
|
2020-11-03 21:07:21 +00:00
|
|
|
#else
|
|
|
|
(void) Data;
|
|
|
|
(void) Size;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|