2 // SecuritydAssertHelper.m
3 // SecuritydAssertHelper
5 // Copyright (c) 2012-2013 Apple Inc. All Rights Reserved.
8 #import <Foundation/Foundation.h>
10 #import <MobileAsset/MobileAsset.h>
12 static NSString * const PKITrustDataAssetType = @"com.apple.MobileAsset.PKITrustServices.PKITrustData";
15 int main (int argc, const char * argv[])
19 ASAssetQuery* assetQuery = [[ASAssetQuery alloc] initWithAssetType:PKITrustDataAssetType];
21 if (nil == assetQuery)
23 NSLog(@"Could not create an ASAssetQuery object");
28 NSArray* foundAssets = nil;
30 foundAssets = [assetQuery runQueryAndReturnError:&error];
31 if (nil == foundAssets)
33 NSLog(@"running assetQuery fails: %@", [error localizedDescription]);