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