mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-19 01:04:04 +03:00
Add #define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS to every sample program before the first include so that mbedtls doesn't break with future privatization work. Signed-off-by: Felix Conway <felix.conway@arm.com>
24 lines
404 B
C
24 lines
404 B
C
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
|
|
|
|
#include <stdint.h>
|
|
#include "mbedtls/pkcs7.h"
|
|
#include "common.h"
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
|
|
{
|
|
#ifdef MBEDTLS_PKCS7_C
|
|
mbedtls_pkcs7 pkcs7;
|
|
|
|
mbedtls_pkcs7_init(&pkcs7);
|
|
|
|
mbedtls_pkcs7_parse_der(&pkcs7, Data, Size);
|
|
|
|
mbedtls_pkcs7_free(&pkcs7);
|
|
#else
|
|
(void) Data;
|
|
(void) Size;
|
|
#endif
|
|
|
|
return 0;
|
|
}
|