]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/threadTest/copyRoots.cpp
4 #include "testParams.h"
9 #include <utilLib/common.h>
10 #include <utilLib/cspwrap.h>
11 #include <Security/Security.h>
12 #include <Security/SecTrustSettingsPriv.h>
17 TestParams
*testParams
)
23 int copyRootsTest(TestParams
*testParams
)
25 for(unsigned loop
=0; loop
<testParams
->numLoops
; loop
++) {
26 if(testParams
->verbose
) {
27 printf("derDecode thread %d: loop %d\n",
28 testParams
->threadNum
, loop
);
30 else if(!testParams
->quiet
) {
31 printChar(testParams
->progressChar
);
34 CFArrayRef theArray
= NULL
;
35 OSStatus ortn
= SecTrustSettingsCopyQualifiedCerts(&CSSMOID_APPLE_TP_SSL
,
36 "localhost", 10, // policyString
37 CSSM_KEYUSE_ENCRYPT
, // wrong key use type but that's what ST passes
40 cssmPerror("SecTrustSettingsCopyQualifiedCerts", ortn
);