]> git.saurik.com Git - apple/security.git/blob - SecurityTests/regressions/kc/kc-30-trust.c
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / regressions / kc / kc-30-trust.c
1 #include <Security/SecTrust.h>
2
3 #include "testmore.h"
4 #include "testleaks.h"
5
6 static void tests(void)
7 {
8 SecTrustRef trust = NULL;
9
10 ok_status(SecTrustCreateWithCertificates(NULL, NULL, &trust),
11 "create empty trust");
12 ok(trust, "trust not NULL");
13 CFRelease(trust);
14 }
15
16 int main(int argc, char *const *argv)
17 {
18 plan_tests(3);
19
20 tests();
21
22 ok_leaks("leaks");
23
24 return 0;
25 }