X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/SecurityTests/clxutils/threadTest/copyRoots.cpp diff --git a/SecurityTests/clxutils/threadTest/copyRoots.cpp b/SecurityTests/clxutils/threadTest/copyRoots.cpp deleted file mode 100644 index f0d4fa1c..00000000 --- a/SecurityTests/clxutils/threadTest/copyRoots.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - * DER decode test - */ -#include "testParams.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -int copyRootsInit( - TestParams *testParams) -{ - /* nothing for now */ - return 0; -} - -int copyRootsTest(TestParams *testParams) -{ - for(unsigned loop=0; loopnumLoops; loop++) { - if(testParams->verbose) { - printf("derDecode thread %d: loop %d\n", - testParams->threadNum, loop); - } - else if(!testParams->quiet) { - printChar(testParams->progressChar); - } - - CFArrayRef theArray = NULL; - OSStatus ortn = SecTrustSettingsCopyQualifiedCerts(&CSSMOID_APPLE_TP_SSL, - "localhost", 10, // policyString - CSSM_KEYUSE_ENCRYPT, // wrong key use type but that's what ST passes - &theArray); - if(ortn) { - cssmPerror("SecTrustSettingsCopyQualifiedCerts", ortn); - return 1; - } - CFRelease(theArray); - } - return 0; -}