]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_keychain/lib/SecPolicyPriv.h
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_keychain / lib / SecPolicyPriv.h
index 95a10a51d1d61400cac7778878c3528297fa4db4..cdc6fd8c2c9f2f9c74fed5cd80666def582ecfe5 100644 (file)
@@ -1,15 +1,15 @@
 /*
- * Copyright (c) 2003-2010 Apple Inc. All Rights Reserved.
- * 
+ * Copyright (c) 2003-2013 Apple Inc. All Rights Reserved.
+ *
  * @APPLE_LICENSE_HEADER_START@
- * 
+ *
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
  * compliance with the License. Please obtain a copy of the License at
  * http://www.opensource.apple.com/apsl/ and read it before using this
  * file.
- * 
+ *
  * The Original Code and all software distributed under the License are
  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  * Please see the License for the specific language governing rights and
  * limitations under the License.
- * 
+ *
  * @APPLE_LICENSE_HEADER_END@
  */
 
 /*!
-       @header SecPolicy
-       The functions provided in SecPolicy implement a representation of a particular trust policy.
+       @header SecPolicyPriv
+       Private part of SecPolicy.h
 */
 
 #ifndef _SECURITY_SECPOLICYPRIV_H_
 extern "C" {
 #endif
 
+/*!
+       @enum Policy Constants (Private)
+       @discussion Predefined constants used to specify a policy.
+       @constant kSecPolicyAppleMobileStore
+       @constant kSecPolicyAppleEscrowService
+       @constant kSecPolicyAppleProfileSigner
+       @constant kSecPolicyAppleQAProfileSigner
+       @constant kSecPolicyAppleTestMobileStore
+
+*/
+extern CFTypeRef kSecPolicyAppleMobileStore
+    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+extern CFTypeRef kSecPolicyAppleEscrowService
+    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+extern CFTypeRef kSecPolicyAppleProfileSigner
+    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+extern CFTypeRef kSecPolicyAppleQAProfileSigner
+    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+extern CFTypeRef kSecPolicyAppleTestMobileStore
+    __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+
 /*!
        @function SecPolicyCopy
        @abstract Returns a copy of a policy reference based on certificate type and OID.
@@ -48,7 +69,7 @@ extern "C" {
        to obtain a policy reference, use one of the SecPolicyCreate* functions in SecPolicy.h.
 */
 OSStatus SecPolicyCopy(CSSM_CERT_TYPE certificateType, const CSSM_OID *policyOID, SecPolicyRef* policy)
-       DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
+       __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3, __MAC_10_7, __IPHONE_NA, __IPHONE_NA);
 
 /*!
        @function SecPolicyCopyAll
@@ -63,7 +84,8 @@ OSStatus SecPolicyCopy(CSSM_CERT_TYPE certificateType, const CSSM_OID *policyOID
        for each desired policy from the list of supported OID constants in SecPolicy.h.)
 */
 OSStatus SecPolicyCopyAll(CSSM_CERT_TYPE certificateType, CFArrayRef* policies)
-       DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
+       __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3, __MAC_10_7, __IPHONE_NA, __IPHONE_NA);
+
 
 #if defined(__cplusplus)
 }