]>
git.saurik.com Git - apple/security.git/blob - tests/secfuzzer/SecCertificateFuzzer.c
2 // SecCertificateFuzzer.c
6 #include <CoreFoundation/CoreFoundation.h>
7 #include <Security/Security.h>
10 SecCertificateFuzzer(const void *data
, size_t len
);
13 SecCertificateFuzzer(const void *data
, size_t len
)
15 CFDataRef d
= CFDataCreateWithBytesNoCopy(NULL
, data
, len
, kCFAllocatorNull
);
16 SecCertificateRef cert
= SecCertificateCreateWithData(NULL
, d
);