]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_cms/lib/CMSEncoder.h
Security-58286.260.20.tar.gz
[apple/security.git] / OSX / libsecurity_cms / lib / CMSEncoder.h
index 955989bb6147e8640a65c7aff8f393732b162b01..32ec916adcf9df2f3f7ebc551020b11bafeb69b0 100644 (file)
@@ -44,6 +44,7 @@
 #include <CoreFoundation/CoreFoundation.h>
 #include <Security/cssmtype.h>
 #include <stdint.h>
+#include <Availability.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -170,8 +171,7 @@ OSStatus CMSEncoderGetHasDetachedContent(
 OSStatus CMSEncoderSetEncapsulatedContentType(
        CMSEncoderRef           cmsEncoder,
        const CSSM_OID  *eContentType)
-       /* DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; */
-    __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
+    API_DEPRECATED_WITH_REPLACEMENT("CMSEncoderSetEncapsulatedContentTypeOID", macos(10.5, 10.7)) API_UNAVAILABLE(ios);
 
 /*
  * Optionally specify an eContentType OID for the inner EncapsulatedData for
@@ -243,7 +243,7 @@ OSStatus CMSEncoderCopySupportingCerts(
  * Standard signed attributes, optionally specified in 
  * CMSEncoderAddSignedAttributes().
  */
-typedef CF_ENUM(uint32_t, CMSSignedAttributes) {
+typedef CF_OPTIONS(uint32_t, CMSSignedAttributes) {
        kCMSAttrNone                                            = 0x0000,
     /* 
      * S/MIME Capabilities - identifies supported signature, encryption, and
@@ -262,7 +262,16 @@ typedef CF_ENUM(uint32_t, CMSSignedAttributes) {
     /*
      * Include the signing time.
      */
-    kCMSAttrSigningTime                                        = 0x0008
+    kCMSAttrSigningTime                                        = 0x0008,
+    /*
+     * Include the Apple Codesigning Hash Agility.
+     */
+    kCMSAttrAppleCodesigningHashAgility = 0x0010,
+    kCMSAttrAppleCodesigningHashAgilityV2 = 0x0020,
+    /*
+     * Include the expiration time.
+     */
+    kCMSAttrAppleExpirationTime         = 0x0040,
 };
 
 /*
@@ -361,8 +370,7 @@ OSStatus CMSEncode(
        const void *                content,
        size_t                      contentLen,
        CFDataRef * __nonnull CF_RETURNS_RETAINED encodedContentOut)    /* RETURNED */
-       /* DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; */
-    __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_NA);
+    API_DEPRECATED_WITH_REPLACEMENT("CMSEncodeContent", macos(10.5, 10.7)) API_UNAVAILABLE(ios);
 
 
 /*