]>
Commit | Line | Data |
---|---|---|
427c49bc | 1 | /* |
d8f41ccd | 2 | * Copyright (c) 2011-2012 Apple Inc. All Rights Reserved. |
427c49bc A |
3 | */ |
4 | ||
5 | #include <Security/SecPolicyPriv.h> | |
fa7225c8 | 6 | #include <utilities/SecCFWrappers.h> |
427c49bc A |
7 | |
8 | #include <test/testpolicy.h> | |
9 | ||
fa7225c8 | 10 | #include "shared_regressions.h" |
427c49bc A |
11 | |
12 | static void tests(void) | |
13 | { | |
14 | SecPolicyRef sslPolicy = SecPolicyCreateSSL(false, 0); | |
15 | ||
16 | /* Run the tests. */ | |
17 | runCertificateTestForDirectory(sslPolicy, CFSTR("DigiNotar"), NULL); | |
18 | runCertificateTestForDirectory(sslPolicy, CFSTR("DigiNotar-Entrust"), NULL); | |
19 | runCertificateTestForDirectory(sslPolicy, CFSTR("DigiNotar-ok"), NULL); | |
20 | ||
21 | CFReleaseSafe(sslPolicy); | |
22 | } | |
23 | ||
24 | int si_24_sectrust_diginotar(int argc, char *const *argv) | |
25 | { | |
fa7225c8 | 26 | plan_tests(25); |
427c49bc A |
27 | |
28 | tests(); | |
29 | ||
30 | return 0; | |
31 | } |