Documentation Archive Developer
Search

Security Changes for Objective-C

Security

Authorization.h

Declaration
From
OSStatus AuthorizationCopyInfo (
    AuthorizationRef authorization,
    AuthorizationString tag,
    AuthorizationItemSet **info
);
To
OSStatus AuthorizationCopyInfo (
    AuthorizationRef _Nonnull authorization,
    AuthorizationString _Nullable tag,
    AuthorizationItemSet * _Nullable * _Nonnull info
);

Declaration
From
OSStatus AuthorizationCopyPrivilegedReference (
    AuthorizationRef *authorization,
    AuthorizationFlags flags
);
To
OSStatus AuthorizationCopyPrivilegedReference (
    AuthorizationRef  _Nullable * _Nonnull authorization,
    AuthorizationFlags flags
);

Declaration
From
OSStatus AuthorizationCopyRights (
    AuthorizationRef authorization,
    const AuthorizationRights *rights,
    const AuthorizationEnvironment *environment,
    AuthorizationFlags flags,
    AuthorizationRights **authorizedRights
);
To
OSStatus AuthorizationCopyRights (
    AuthorizationRef _Nonnull authorization,
    const AuthorizationRights * _Nonnull rights,
    const AuthorizationEnvironment * _Nullable environment,
    AuthorizationFlags flags,
    AuthorizationRights * _Nullable * _Nullable authorizedRights
);

Declaration
From
void AuthorizationCopyRightsAsync (
    AuthorizationRef authorization,
    const AuthorizationRights *rights,
    const AuthorizationEnvironment *environment,
    AuthorizationFlags flags,
    AuthorizationAsyncCallback callbackBlock
);
To
void AuthorizationCopyRightsAsync (
    AuthorizationRef _Nonnull authorization,
    const AuthorizationRights * _Nonnull rights,
    const AuthorizationEnvironment * _Nullable environment,
    AuthorizationFlags flags,
    AuthorizationAsyncCallback _Nonnull callbackBlock
);

Declaration
From
OSStatus AuthorizationCreate (
    const AuthorizationRights *rights,
    const AuthorizationEnvironment *environment,
    AuthorizationFlags flags,
    AuthorizationRef *authorization
);
To
OSStatus AuthorizationCreate (
    const AuthorizationRights * _Nullable rights,
    const AuthorizationEnvironment * _Nullable environment,
    AuthorizationFlags flags,
    AuthorizationRef  _Nullable * _Nullable authorization
);

Declaration
From
OSStatus AuthorizationCreateFromExternalForm (
    const AuthorizationExternalForm *extForm,
    AuthorizationRef *authorization
);
To
OSStatus AuthorizationCreateFromExternalForm (
    const AuthorizationExternalForm * _Nonnull extForm,
    AuthorizationRef  _Nullable * _Nonnull authorization
);

Declaration
From
OSStatus AuthorizationExecuteWithPrivileges (
    AuthorizationRef authorization,
    const char *pathToTool,
    AuthorizationFlags options,
    char *const *arguments,
    FILE **communicationsPipe
);
To
OSStatus AuthorizationExecuteWithPrivileges (
    AuthorizationRef _Nonnull authorization,
    const char * _Nonnull pathToTool,
    AuthorizationFlags options,
    char *const  _Nonnull * _Nonnull arguments,
    FILE * _Nullable * _Nullable communicationsPipe
);

Declaration
From
OSStatus AuthorizationFree (
    AuthorizationRef authorization,
    AuthorizationFlags flags
);
To
OSStatus AuthorizationFree (
    AuthorizationRef _Nonnull authorization,
    AuthorizationFlags flags
);

Declaration
From
OSStatus AuthorizationFreeItemSet (
    AuthorizationItemSet *set
);
To
OSStatus AuthorizationFreeItemSet (
    AuthorizationItemSet * _Nonnull set
);

Declaration
From
OSStatus AuthorizationMakeExternalForm (
    AuthorizationRef authorization,
    AuthorizationExternalForm *extForm
);
To
OSStatus AuthorizationMakeExternalForm (
    AuthorizationRef _Nonnull authorization,
    AuthorizationExternalForm * _Nonnull extForm
);

AuthorizationDB.h

Declaration
From
OSStatus AuthorizationRightGet (
    const char *rightName,
    CFDictionaryRef *rightDefinition
);
To
OSStatus AuthorizationRightGet (
    const char * _Nonnull rightName,
    CFDictionaryRef  _Nullable * _Nullable rightDefinition
);

Declaration
From
OSStatus AuthorizationRightRemove (
    AuthorizationRef authRef,
    const char *rightName
);
To
OSStatus AuthorizationRightRemove (
    AuthorizationRef _Nonnull authRef,
    const char * _Nonnull rightName
);

Declaration
From
OSStatus AuthorizationRightSet (
    AuthorizationRef authRef,
    const char *rightName,
    CFTypeRef rightDefinition,
    CFStringRef descriptionKey,
    CFBundleRef bundle,
    CFStringRef localeTableName
);
To
OSStatus AuthorizationRightSet (
    AuthorizationRef _Nonnull authRef,
    const char * _Nonnull rightName,
    CFTypeRef _Nonnull rightDefinition,
    CFStringRef _Nullable descriptionKey,
    CFBundleRef _Nullable bundle,
    CFStringRef _Nullable localeTableName
);

AuthorizationPlugin.h

Declaration
From
OSStatus AuthorizationPluginCreate (
    const AuthorizationCallbacks *callbacks,
    AuthorizationPluginRef *outPlugin,
    const AuthorizationPluginInterface **outPluginInterface
);
To
OSStatus AuthorizationPluginCreate (
    const AuthorizationCallbacks * _Nonnull callbacks,
    AuthorizationPluginRef  _Nullable * _Nonnull outPlugin,
    const AuthorizationPluginInterface * _Nullable * _Nonnull outPluginInterface
);

AuthSession.h

Declaration
From
OSStatus SessionGetInfo (
    SecuritySessionId session,
    SecuritySessionId *sessionId,
    SessionAttributeBits *attributes
);
To
OSStatus SessionGetInfo (
    SecuritySessionId session,
    SecuritySessionId * _Nullable sessionId,
    SessionAttributeBits * _Nullable attributes
);

CMSDecoder.h

Declaration
From
OSStatus CMSDecoderCopyAllCerts (
    CMSDecoderRef cmsDecoder,
    CFArrayRef *certsOut
);
To
OSStatus CMSDecoderCopyAllCerts (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFArrayRef  _Nullable * _Nonnull certsOut
);

Declaration
From
OSStatus CMSDecoderCopyContent (
    CMSDecoderRef cmsDecoder,
    CFDataRef *contentOut
);
To
OSStatus CMSDecoderCopyContent (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFDataRef  _Nullable * _Nonnull contentOut
);

Declaration
From
OSStatus CMSDecoderCopyDetachedContent (
    CMSDecoderRef cmsDecoder,
    CFDataRef *detachedContentOut
);
To
OSStatus CMSDecoderCopyDetachedContent (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFDataRef  _Nullable * _Nonnull detachedContentOut
);

Declaration
From
OSStatus CMSDecoderCopyEncapsulatedContentType (
    CMSDecoderRef cmsDecoder,
    CFDataRef *eContentTypeOut
);
To
OSStatus CMSDecoderCopyEncapsulatedContentType (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFDataRef  _Nullable * _Nonnull eContentTypeOut
);

Declaration
From
OSStatus CMSDecoderCopySignerCert (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    SecCertificateRef *signerCertOut
);
To
OSStatus CMSDecoderCopySignerCert (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    SecCertificateRef  _Nullable * _Nonnull signerCertOut
);

Declaration
From
OSStatus CMSDecoderCopySignerEmailAddress (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    CFStringRef *signerEmailAddressOut
);
To
OSStatus CMSDecoderCopySignerEmailAddress (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    CFStringRef  _Nullable * _Nonnull signerEmailAddressOut
);

Declaration
From
OSStatus CMSDecoderCopySignerSigningTime (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    CFAbsoluteTime *signingTime
);
To
OSStatus CMSDecoderCopySignerSigningTime (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    CFAbsoluteTime * _Nonnull signingTime
);

Declaration
From
OSStatus CMSDecoderCopySignerStatus (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    CFTypeRef policyOrArray,
    Boolean evaluateSecTrust,
    CMSSignerStatus *signerStatusOut,
    SecTrustRef *secTrustOut,
    OSStatus *certVerifyResultCodeOut
);
To
OSStatus CMSDecoderCopySignerStatus (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    CFTypeRef _Nonnull policyOrArray,
    Boolean evaluateSecTrust,
    CMSSignerStatus * _Nullable signerStatusOut,
    SecTrustRef  _Nullable * _Nullable secTrustOut,
    OSStatus * _Nullable certVerifyResultCodeOut
);

Declaration
From
OSStatus CMSDecoderCopySignerTimestamp (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    CFAbsoluteTime *timestamp
);
To
OSStatus CMSDecoderCopySignerTimestamp (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    CFAbsoluteTime * _Nonnull timestamp
);

Declaration
From
OSStatus CMSDecoderCopySignerTimestampCertificates (
    CMSDecoderRef cmsDecoder,
    size_t signerIndex,
    CFArrayRef *certificateRefs
);
To
OSStatus CMSDecoderCopySignerTimestampCertificates (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t signerIndex,
    CFArrayRef  _Nullable * _Nonnull certificateRefs
);

Declaration
From
OSStatus CMSDecoderCopySignerTimestampWithPolicy (
    CMSDecoderRef cmsDecoder,
    CFTypeRef timeStampPolicy,
    size_t signerIndex,
    CFAbsoluteTime *timestamp
);
To
OSStatus CMSDecoderCopySignerTimestampWithPolicy (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFTypeRef _Nullable timeStampPolicy,
    size_t signerIndex,
    CFAbsoluteTime * _Nonnull timestamp
);

Declaration
From
OSStatus CMSDecoderCreate (
    CMSDecoderRef *cmsDecoderOut
);
To
OSStatus CMSDecoderCreate (
    CMSDecoderRef  _Nullable * _Nonnull cmsDecoderOut
);

Declaration
From
OSStatus CMSDecoderFinalizeMessage (
    CMSDecoderRef cmsDecoder
);
To
OSStatus CMSDecoderFinalizeMessage (
    CMSDecoderRef _Nonnull cmsDecoder
);

Declaration
From
OSStatus CMSDecoderGetNumSigners (
    CMSDecoderRef cmsDecoder,
    size_t *numSignersOut
);
To
OSStatus CMSDecoderGetNumSigners (
    CMSDecoderRef _Nonnull cmsDecoder,
    size_t * _Nonnull numSignersOut
);

Declaration
From
OSStatus CMSDecoderIsContentEncrypted (
    CMSDecoderRef cmsDecoder,
    Boolean *isEncryptedOut
);
To
OSStatus CMSDecoderIsContentEncrypted (
    CMSDecoderRef _Nonnull cmsDecoder,
    Boolean * _Nonnull isEncryptedOut
);

Declaration
From
OSStatus CMSDecoderSetDetachedContent (
    CMSDecoderRef cmsDecoder,
    CFDataRef detachedContent
);
To
OSStatus CMSDecoderSetDetachedContent (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFDataRef _Nonnull detachedContent
);

Declaration
From
OSStatus CMSDecoderSetSearchKeychain (
    CMSDecoderRef cmsDecoder,
    CFTypeRef keychainOrArray
);
To
OSStatus CMSDecoderSetSearchKeychain (
    CMSDecoderRef _Nonnull cmsDecoder,
    CFTypeRef _Nonnull keychainOrArray
);

Declaration
From
OSStatus CMSDecoderUpdateMessage (
    CMSDecoderRef cmsDecoder,
    const void *msgBytes,
    size_t msgBytesLen
);
To
OSStatus CMSDecoderUpdateMessage (
    CMSDecoderRef _Nonnull cmsDecoder,
    const void * _Nonnull msgBytes,
    size_t msgBytesLen
);

CMSEncoder.h

Modified CMSEncode()
Declaration
From
OSStatus CMSEncode (
    CFTypeRef signers,
    CFTypeRef recipients,
    const CSSM_OID *eContentType,
    Boolean detachedContent,
    CMSSignedAttributes signedAttributes,
    const void *content,
    size_t contentLen,
    CFDataRef *encodedContentOut
);
To
OSStatus CMSEncode (
    CFTypeRef _Nullable signers,
    CFTypeRef _Nullable recipients,
    const CSSM_OID * _Nullable eContentType,
    Boolean detachedContent,
    CMSSignedAttributes signedAttributes,
    const void * _Nonnull content,
    size_t contentLen,
    CFDataRef  _Nullable * _Nonnull encodedContentOut
);

Declaration
From
OSStatus CMSEncodeContent (
    CFTypeRef signers,
    CFTypeRef recipients,
    CFTypeRef eContentTypeOID,
    Boolean detachedContent,
    CMSSignedAttributes signedAttributes,
    const void *content,
    size_t contentLen,
    CFDataRef *encodedContentOut
);
To
OSStatus CMSEncodeContent (
    CFTypeRef _Nullable signers,
    CFTypeRef _Nullable recipients,
    CFTypeRef _Nullable eContentTypeOID,
    Boolean detachedContent,
    CMSSignedAttributes signedAttributes,
    const void * _Nonnull content,
    size_t contentLen,
    CFDataRef  _Nullable * _Nullable encodedContentOut
);

Declaration
From
OSStatus CMSEncoderAddRecipients (
    CMSEncoderRef cmsEncoder,
    CFTypeRef recipientOrArray
);
To
OSStatus CMSEncoderAddRecipients (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFTypeRef _Nonnull recipientOrArray
);

Declaration
From
OSStatus CMSEncoderAddSignedAttributes (
    CMSEncoderRef cmsEncoder,
    CMSSignedAttributes signedAttributes
);
To
OSStatus CMSEncoderAddSignedAttributes (
    CMSEncoderRef _Nonnull cmsEncoder,
    CMSSignedAttributes signedAttributes
);

Declaration
From
OSStatus CMSEncoderAddSigners (
    CMSEncoderRef cmsEncoder,
    CFTypeRef signerOrArray
);
To
OSStatus CMSEncoderAddSigners (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFTypeRef _Nonnull signerOrArray
);

Declaration
From
OSStatus CMSEncoderAddSupportingCerts (
    CMSEncoderRef cmsEncoder,
    CFTypeRef certOrArray
);
To
OSStatus CMSEncoderAddSupportingCerts (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFTypeRef _Nonnull certOrArray
);

Declaration
From
OSStatus CMSEncoderCopyEncapsulatedContentType (
    CMSEncoderRef cmsEncoder,
    CFDataRef *eContentTypeOut
);
To
OSStatus CMSEncoderCopyEncapsulatedContentType (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFDataRef  _Nullable * _Nonnull eContentTypeOut
);

Declaration
From
OSStatus CMSEncoderCopyEncodedContent (
    CMSEncoderRef cmsEncoder,
    CFDataRef *encodedContentOut
);
To
OSStatus CMSEncoderCopyEncodedContent (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFDataRef  _Nullable * _Nonnull encodedContentOut
);

Declaration
From
OSStatus CMSEncoderCopyRecipients (
    CMSEncoderRef cmsEncoder,
    CFArrayRef *recipientsOut
);
To
OSStatus CMSEncoderCopyRecipients (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFArrayRef  _Nullable * _Nonnull recipientsOut
);

Declaration
From
OSStatus CMSEncoderCopySigners (
    CMSEncoderRef cmsEncoder,
    CFArrayRef *signersOut
);
To
OSStatus CMSEncoderCopySigners (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFArrayRef  _Nullable * _Nonnull signersOut
);

Declaration
From
OSStatus CMSEncoderCopySignerTimestamp (
    CMSEncoderRef cmsEncoder,
    size_t signerIndex,
    CFAbsoluteTime *timestamp
);
To
OSStatus CMSEncoderCopySignerTimestamp (
    CMSEncoderRef _Nonnull cmsEncoder,
    size_t signerIndex,
    CFAbsoluteTime * _Nonnull timestamp
);

Declaration
From
OSStatus CMSEncoderCopySignerTimestampWithPolicy (
    CMSEncoderRef cmsEncoder,
    CFTypeRef timeStampPolicy,
    size_t signerIndex,
    CFAbsoluteTime *timestamp
);
To
OSStatus CMSEncoderCopySignerTimestampWithPolicy (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFTypeRef _Nullable timeStampPolicy,
    size_t signerIndex,
    CFAbsoluteTime * _Nonnull timestamp
);

Declaration
From
OSStatus CMSEncoderCopySupportingCerts (
    CMSEncoderRef cmsEncoder,
    CFArrayRef *certsOut
);
To
OSStatus CMSEncoderCopySupportingCerts (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFArrayRef  _Nullable * _Nonnull certsOut
);

Declaration
From
OSStatus CMSEncoderCreate (
    CMSEncoderRef *cmsEncoderOut
);
To
OSStatus CMSEncoderCreate (
    CMSEncoderRef  _Nullable * _Nonnull cmsEncoderOut
);

Declaration
From
OSStatus CMSEncoderGetCertificateChainMode (
    CMSEncoderRef cmsEncoder,
    CMSCertificateChainMode *chainModeOut
);
To
OSStatus CMSEncoderGetCertificateChainMode (
    CMSEncoderRef _Nonnull cmsEncoder,
    CMSCertificateChainMode * _Nonnull chainModeOut
);

Declaration
From
OSStatus CMSEncoderGetHasDetachedContent (
    CMSEncoderRef cmsEncoder,
    Boolean *detachedContentOut
);
To
OSStatus CMSEncoderGetHasDetachedContent (
    CMSEncoderRef _Nonnull cmsEncoder,
    Boolean * _Nonnull detachedContentOut
);

Declaration
From
OSStatus CMSEncoderSetCertificateChainMode (
    CMSEncoderRef cmsEncoder,
    CMSCertificateChainMode chainMode
);
To
OSStatus CMSEncoderSetCertificateChainMode (
    CMSEncoderRef _Nonnull cmsEncoder,
    CMSCertificateChainMode chainMode
);

Declaration
From
OSStatus CMSEncoderSetEncapsulatedContentType (
    CMSEncoderRef cmsEncoder,
    const CSSM_OID *eContentType
);
To
OSStatus CMSEncoderSetEncapsulatedContentType (
    CMSEncoderRef _Nonnull cmsEncoder,
    const CSSM_OID * _Nonnull eContentType
);

Declaration
From
OSStatus CMSEncoderSetEncapsulatedContentTypeOID (
    CMSEncoderRef cmsEncoder,
    CFTypeRef eContentTypeOID
);
To
OSStatus CMSEncoderSetEncapsulatedContentTypeOID (
    CMSEncoderRef _Nonnull cmsEncoder,
    CFTypeRef _Nonnull eContentTypeOID
);

Declaration
From
OSStatus CMSEncoderSetHasDetachedContent (
    CMSEncoderRef cmsEncoder,
    Boolean detachedContent
);
To
OSStatus CMSEncoderSetHasDetachedContent (
    CMSEncoderRef _Nonnull cmsEncoder,
    Boolean detachedContent
);

Declaration
From
OSStatus CMSEncoderUpdateContent (
    CMSEncoderRef cmsEncoder,
    const void *content,
    size_t contentLen
);
To
OSStatus CMSEncoderUpdateContent (
    CMSEncoderRef _Nonnull cmsEncoder,
    const void * _Nonnull content,
    size_t contentLen
);

CSCommon.h

cssmtype.h

oids.h (Added)

Added DERByte
Added DERItem
Added DERSize
Added oidAdOCSP
Added oidFee
Added oidMd2
Added oidMd2Rsa
Added oidMd4
Added oidMd4Rsa
Added oidMd5
Added oidMd5Fee
Added oidMd5Rsa
Added oidQtCps
Added oidRsa
Added oidSha1
Added oidSha224
Added oidSha256
Added oidSha384
Added oidSha512

SecAccess.h

Declaration
From
OSStatus SecAccessCopyACLList (
    SecAccessRef accessRef,
    CFArrayRef *aclList
);
To
OSStatus SecAccessCopyACLList (
    SecAccessRef _Nonnull accessRef,
    CFArrayRef  _Nullable * _Nonnull aclList
);

Declaration
From
CFArrayRef SecAccessCopyMatchingACLList (
    SecAccessRef accessRef,
    CFTypeRef authorizationTag
);
To
CFArrayRef _Nullable SecAccessCopyMatchingACLList (
    SecAccessRef _Nonnull accessRef,
    CFTypeRef _Nonnull authorizationTag
);

Declaration
From
OSStatus SecAccessCopyOwnerAndACL (
    SecAccessRef accessRef,
    uid_t *userId,
    gid_t *groupId,
    SecAccessOwnerType *ownerType,
    CFArrayRef *aclList
);
To
OSStatus SecAccessCopyOwnerAndACL (
    SecAccessRef _Nonnull accessRef,
    uid_t * _Nullable userId,
    gid_t * _Nullable groupId,
    SecAccessOwnerType * _Nullable ownerType,
    CFArrayRef  _Nullable * _Nullable aclList
);

Declaration
From
OSStatus SecAccessCopySelectedACLList (
    SecAccessRef accessRef,
    CSSM_ACL_AUTHORIZATION_TAG action,
    CFArrayRef *aclList
);
To
OSStatus SecAccessCopySelectedACLList (
    SecAccessRef _Nonnull accessRef,
    CSSM_ACL_AUTHORIZATION_TAG action,
    CFArrayRef  _Nullable * _Nonnull aclList
);

Declaration
From
OSStatus SecAccessCreate (
    CFStringRef descriptor,
    CFArrayRef trustedlist,
    SecAccessRef *accessRef
);
To
OSStatus SecAccessCreate (
    CFStringRef _Nonnull descriptor,
    CFArrayRef _Nullable trustedlist,
    SecAccessRef  _Nullable * _Nonnull accessRef
);

Declaration
From
OSStatus SecAccessCreateFromOwnerAndACL (
    const CSSM_ACL_OWNER_PROTOTYPE *owner,
    uint32 aclCount,
    const CSSM_ACL_ENTRY_INFO *acls,
    SecAccessRef *accessRef
);
To
OSStatus SecAccessCreateFromOwnerAndACL (
    const CSSM_ACL_OWNER_PROTOTYPE * _Nonnull owner,
    uint32 aclCount,
    const CSSM_ACL_ENTRY_INFO * _Nonnull acls,
    SecAccessRef  _Nullable * _Nonnull accessRef
);

Declaration
From
SecAccessRef SecAccessCreateWithOwnerAndACL (
    uid_t userId,
    gid_t groupId,
    SecAccessOwnerType ownerType,
    CFArrayRef acls,
    CFErrorRef *error
);
To
SecAccessRef _Nullable SecAccessCreateWithOwnerAndACL (
    uid_t userId,
    gid_t groupId,
    SecAccessOwnerType ownerType,
    CFArrayRef _Nullable acls,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
OSStatus SecAccessGetOwnerAndACL (
    SecAccessRef accessRef,
    CSSM_ACL_OWNER_PROTOTYPE_PTR *owner,
    uint32 *aclCount,
    CSSM_ACL_ENTRY_INFO_PTR *acls
);
To
OSStatus SecAccessGetOwnerAndACL (
    SecAccessRef _Nonnull accessRef,
    CSSM_ACL_OWNER_PROTOTYPE_PTR  _Nullable * _Nonnull owner,
    uint32 * _Nonnull aclCount,
    CSSM_ACL_ENTRY_INFO_PTR  _Nullable * _Nonnull acls
);

SecAccessControl.h

Declaration
From
SecAccessControlRef SecAccessControlCreateWithFlags (
    CFAllocatorRef allocator,
    CFTypeRef protection,
    SecAccessControlCreateFlags flags,
    CFErrorRef *error
);
To
SecAccessControlRef _Nullable SecAccessControlCreateWithFlags (
    CFAllocatorRef _Nullable allocator,
    CFTypeRef _Nonnull protection,
    SecAccessControlCreateFlags flags,
    CFErrorRef  _Nullable * _Nullable error
);

SecACL.h

Declaration
From
CFArrayRef SecACLCopyAuthorizations (
    SecACLRef acl
);
To
CFArrayRef _Nonnull SecACLCopyAuthorizations (
    SecACLRef _Nonnull acl
);

Declaration
From
OSStatus SecACLCopyContents (
    SecACLRef acl,
    CFArrayRef *applicationList,
    CFStringRef *description,
    SecKeychainPromptSelector *promptSelector
);
To
OSStatus SecACLCopyContents (
    SecACLRef _Nonnull acl,
    CFArrayRef  _Nullable * _Nonnull applicationList,
    CFStringRef  _Nullable * _Nonnull description,
    SecKeychainPromptSelector * _Nonnull promptSelector
);

Declaration
From
OSStatus SecACLCopySimpleContents (
    SecACLRef acl,
    CFArrayRef *applicationList,
    CFStringRef *description,
    CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR *promptSelector
);
To
OSStatus SecACLCopySimpleContents (
    SecACLRef _Nonnull acl,
    CFArrayRef  _Nullable * _Nonnull applicationList,
    CFStringRef  _Nullable * _Nonnull description,
    CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR * _Nonnull promptSelector
);

Declaration
From
OSStatus SecACLCreateFromSimpleContents (
    SecAccessRef access,
    CFArrayRef applicationList,
    CFStringRef description,
    const CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR *promptSelector,
    SecACLRef *newAcl
);
To
OSStatus SecACLCreateFromSimpleContents (
    SecAccessRef _Nonnull access,
    CFArrayRef _Nullable applicationList,
    CFStringRef _Nonnull description,
    const CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR * _Nonnull promptSelector,
    SecACLRef  _Nullable * _Nonnull newAcl
);

Declaration
From
OSStatus SecACLCreateWithSimpleContents (
    SecAccessRef access,
    CFArrayRef applicationList,
    CFStringRef description,
    SecKeychainPromptSelector promptSelector,
    SecACLRef *newAcl
);
To
OSStatus SecACLCreateWithSimpleContents (
    SecAccessRef _Nonnull access,
    CFArrayRef _Nullable applicationList,
    CFStringRef _Nonnull description,
    SecKeychainPromptSelector promptSelector,
    SecACLRef  _Nullable * _Nonnull newAcl
);

Declaration
From
OSStatus SecACLGetAuthorizations (
    SecACLRef acl,
    CSSM_ACL_AUTHORIZATION_TAG *tags,
    uint32 *tagCount
);
To
OSStatus SecACLGetAuthorizations (
    SecACLRef _Nonnull acl,
    CSSM_ACL_AUTHORIZATION_TAG * _Nonnull tags,
    uint32 * _Nonnull tagCount
);

Declaration
From
OSStatus SecACLRemove (
    SecACLRef aclRef
);
To
OSStatus SecACLRemove (
    SecACLRef _Nonnull aclRef
);

Declaration
From
OSStatus SecACLSetAuthorizations (
    SecACLRef acl,
    CSSM_ACL_AUTHORIZATION_TAG *tags,
    uint32 tagCount
);
To
OSStatus SecACLSetAuthorizations (
    SecACLRef _Nonnull acl,
    CSSM_ACL_AUTHORIZATION_TAG * _Nonnull tags,
    uint32 tagCount
);

Declaration
From
OSStatus SecACLSetContents (
    SecACLRef acl,
    CFArrayRef applicationList,
    CFStringRef description,
    SecKeychainPromptSelector promptSelector
);
To
OSStatus SecACLSetContents (
    SecACLRef _Nonnull acl,
    CFArrayRef _Nullable applicationList,
    CFStringRef _Nonnull description,
    SecKeychainPromptSelector promptSelector
);

Declaration
From
OSStatus SecACLSetSimpleContents (
    SecACLRef acl,
    CFArrayRef applicationList,
    CFStringRef description,
    const CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR *promptSelector
);
To
OSStatus SecACLSetSimpleContents (
    SecACLRef _Nonnull acl,
    CFArrayRef _Nullable applicationList,
    CFStringRef _Nonnull description,
    const CSSM_ACL_KEYCHAIN_PROMPT_SELECTOR * _Nonnull promptSelector
);

Declaration
From
OSStatus SecACLUpdateAuthorizations (
    SecACLRef acl,
    CFArrayRef authorizations
);
To
OSStatus SecACLUpdateAuthorizations (
    SecACLRef _Nonnull acl,
    CFArrayRef _Nonnull authorizations
);

SecAsn1Coder.h

Declaration
From
OSStatus SecAsn1AllocCopy (
    SecAsn1CoderRef coder,
    const void *src,
    size_t len,
    SecAsn1Item *dest
);
To
OSStatus SecAsn1AllocCopy (
    SecAsn1CoderRef _Nonnull coder,
    const void * _Nonnull src,
    size_t len,
    SecAsn1Item * _Nonnull dest
);

Declaration
From
OSStatus SecAsn1AllocCopyItem (
    SecAsn1CoderRef coder,
    const SecAsn1Item *src,
    SecAsn1Item *dest
);
To
OSStatus SecAsn1AllocCopyItem (
    SecAsn1CoderRef _Nonnull coder,
    const SecAsn1Item * _Nonnull src,
    SecAsn1Item * _Nonnull dest
);

Declaration
From
OSStatus SecAsn1AllocItem (
    SecAsn1CoderRef coder,
    SecAsn1Item *item,
    size_t len
);
To
OSStatus SecAsn1AllocItem (
    SecAsn1CoderRef _Nonnull coder,
    SecAsn1Item * _Nonnull item,
    size_t len
);

Declaration
From
OSStatus SecAsn1CoderCreate (
    SecAsn1CoderRef *coder
);
To
OSStatus SecAsn1CoderCreate (
    SecAsn1CoderRef  _Nullable * _Nonnull coder
);

Declaration
From
OSStatus SecAsn1CoderRelease (
    SecAsn1CoderRef coder
);
To
OSStatus SecAsn1CoderRelease (
    SecAsn1CoderRef _Nonnull coder
);

Declaration
From
OSStatus SecAsn1Decode (
    SecAsn1CoderRef coder,
    const void *src,
    size_t len,
    const SecAsn1Template *templates,
    void *dest
);
To
OSStatus SecAsn1Decode (
    SecAsn1CoderRef _Nonnull coder,
    const void * _Nonnull src,
    size_t len,
    const SecAsn1Template * _Nonnull templates,
    void * _Nonnull dest
);

Declaration
From
OSStatus SecAsn1DecodeData (
    SecAsn1CoderRef coder,
    const SecAsn1Item *src,
    const SecAsn1Template *templ,
    void *dest
);
To
OSStatus SecAsn1DecodeData (
    SecAsn1CoderRef _Nonnull coder,
    const SecAsn1Item * _Nonnull src,
    const SecAsn1Template * _Nonnull templ,
    void * _Nonnull dest
);

Declaration
From
OSStatus SecAsn1EncodeItem (
    SecAsn1CoderRef coder,
    const void *src,
    const SecAsn1Template *templates,
    SecAsn1Item *dest
);
To
OSStatus SecAsn1EncodeItem (
    SecAsn1CoderRef _Nonnull coder,
    const void * _Nonnull src,
    const SecAsn1Template * _Nonnull templates,
    SecAsn1Item * _Nonnull dest
);

Declaration
From
void * SecAsn1Malloc (
    SecAsn1CoderRef coder,
    size_t len
);
To
void * _Nonnull SecAsn1Malloc (
    SecAsn1CoderRef _Nonnull coder,
    size_t len
);

Declaration
From
bool SecAsn1OidCompare (
    const SecAsn1Oid *oid1,
    const SecAsn1Oid *oid2
);
To
bool SecAsn1OidCompare (
    const SecAsn1Oid * _Nonnull oid1,
    const SecAsn1Oid * _Nonnull oid2
);

SecBase.h

Declaration
From
CFStringRef SecCopyErrorMessageString (
    OSStatus status,
    void *reserved
);
To
CFStringRef _Nullable SecCopyErrorMessageString (
    OSStatus status,
    void * _Nullable reserved
);

SecCertificate.h

Declaration
From
OSStatus SecCertificateAddToKeychain (
    SecCertificateRef certificate,
    SecKeychainRef keychain
);
To
OSStatus SecCertificateAddToKeychain (
    SecCertificateRef _Nonnull certificate,
    SecKeychainRef _Nullable keychain
);

Declaration
From
OSStatus SecCertificateCopyCommonName (
    SecCertificateRef certificate,
    CFStringRef *commonName
);
To
OSStatus SecCertificateCopyCommonName (
    SecCertificateRef _Nonnull certificate,
    CFStringRef  _Nullable * _Nonnull commonName
);

Declaration
From
CFDataRef SecCertificateCopyData (
    SecCertificateRef certificate
);
To
CFDataRef _Nonnull SecCertificateCopyData (
    SecCertificateRef _Nonnull certificate
);

Declaration
From
OSStatus SecCertificateCopyEmailAddresses (
    SecCertificateRef certificate,
    CFArrayRef *emailAddresses
);
To
OSStatus SecCertificateCopyEmailAddresses (
    SecCertificateRef _Nonnull certificate,
    CFArrayRef  _Nullable * _Nonnull emailAddresses
);

Declaration
From
CFStringRef SecCertificateCopyLongDescription (
    CFAllocatorRef alloc,
    SecCertificateRef certificate,
    CFErrorRef *error
);
To
CFStringRef _Nullable SecCertificateCopyLongDescription (
    CFAllocatorRef _Nullable alloc,
    SecCertificateRef _Nonnull certificate,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFDataRef SecCertificateCopyNormalizedIssuerContent (
    SecCertificateRef certificate,
    CFErrorRef *error
);
To
CFDataRef _Nullable SecCertificateCopyNormalizedIssuerContent (
    SecCertificateRef _Nonnull certificate,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFDataRef SecCertificateCopyNormalizedSubjectContent (
    SecCertificateRef certificate,
    CFErrorRef *error
);
To
CFDataRef _Nullable SecCertificateCopyNormalizedSubjectContent (
    SecCertificateRef _Nonnull certificate,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
OSStatus SecCertificateCopyPreference (
    CFStringRef name,
    uint32 keyUsage,
    SecCertificateRef *certificate
);
To
OSStatus SecCertificateCopyPreference (
    CFStringRef _Nonnull name,
    uint32 keyUsage,
    SecCertificateRef  _Nullable * _Nonnull certificate
);

Declaration
From
SecCertificateRef SecCertificateCopyPreferred (
    CFStringRef name,
    CFArrayRef keyUsage
);
To
SecCertificateRef _Nullable SecCertificateCopyPreferred (
    CFStringRef _Nonnull name,
    CFArrayRef _Nullable keyUsage
);

Declaration
From
OSStatus SecCertificateCopyPublicKey (
    SecCertificateRef certificate,
    SecKeyRef *key
);
To
OSStatus SecCertificateCopyPublicKey (
    SecCertificateRef _Nonnull certificate,
    SecKeyRef  _Nullable * _Nonnull key
);

Declaration
From
CFDataRef SecCertificateCopySerialNumber (
    SecCertificateRef certificate,
    CFErrorRef *error
);
To
CFDataRef _Nullable SecCertificateCopySerialNumber (
    SecCertificateRef _Nonnull certificate,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFStringRef SecCertificateCopyShortDescription (
    CFAllocatorRef alloc,
    SecCertificateRef certificate,
    CFErrorRef *error
);
To
CFStringRef _Nullable SecCertificateCopyShortDescription (
    CFAllocatorRef _Nullable alloc,
    SecCertificateRef _Nonnull certificate,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFStringRef SecCertificateCopySubjectSummary (
    SecCertificateRef certificate
);
To
CFStringRef _Nonnull SecCertificateCopySubjectSummary (
    SecCertificateRef _Nonnull certificate
);

Declaration
From
CFDictionaryRef SecCertificateCopyValues (
    SecCertificateRef certificate,
    CFArrayRef keys,
    CFErrorRef *error
);
To
CFDictionaryRef _Nullable SecCertificateCopyValues (
    SecCertificateRef _Nonnull certificate,
    CFArrayRef _Nullable keys,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
OSStatus SecCertificateCreateFromData (
    const CSSM_DATA *data,
    CSSM_CERT_TYPE type,
    CSSM_CERT_ENCODING encoding,
    SecCertificateRef *certificate
);
To
OSStatus SecCertificateCreateFromData (
    const CSSM_DATA * _Nonnull data,
    CSSM_CERT_TYPE type,
    CSSM_CERT_ENCODING encoding,
    SecCertificateRef  _Nullable * _Nonnull certificate
);

Declaration
From
SecCertificateRef SecCertificateCreateWithData (
    CFAllocatorRef allocator,
    CFDataRef data
);
To
SecCertificateRef _Nullable SecCertificateCreateWithData (
    CFAllocatorRef _Nullable allocator,
    CFDataRef _Nonnull data
);

Declaration
From
OSStatus SecCertificateGetAlgorithmID (
    SecCertificateRef certificate,
    const CSSM_X509_ALGORITHM_IDENTIFIER **algid
);
To
OSStatus SecCertificateGetAlgorithmID (
    SecCertificateRef _Nonnull certificate,
    const CSSM_X509_ALGORITHM_IDENTIFIER * _Nullable * _Nonnull algid
);

Declaration
From
OSStatus SecCertificateGetCLHandle (
    SecCertificateRef certificate,
    CSSM_CL_HANDLE *clHandle
);
To
OSStatus SecCertificateGetCLHandle (
    SecCertificateRef _Nonnull certificate,
    CSSM_CL_HANDLE * _Nonnull clHandle
);

Declaration
From
OSStatus SecCertificateGetData (
    SecCertificateRef certificate,
    CSSM_DATA_PTR data
);
To
OSStatus SecCertificateGetData (
    SecCertificateRef _Nonnull certificate,
    CSSM_DATA_PTR _Nonnull data
);

Declaration
From
OSStatus SecCertificateGetIssuer (
    SecCertificateRef certificate,
    const CSSM_X509_NAME **issuer
);
To
OSStatus SecCertificateGetIssuer (
    SecCertificateRef _Nonnull certificate,
    const CSSM_X509_NAME * _Nullable * _Nonnull issuer
);

Declaration
From
OSStatus SecCertificateGetSubject (
    SecCertificateRef certificate,
    const CSSM_X509_NAME **subject
);
To
OSStatus SecCertificateGetSubject (
    SecCertificateRef _Nonnull certificate,
    const CSSM_X509_NAME * _Nullable * _Nonnull subject
);

Declaration
From
OSStatus SecCertificateGetType (
    SecCertificateRef certificate,
    CSSM_CERT_TYPE *certificateType
);
To
OSStatus SecCertificateGetType (
    SecCertificateRef _Nonnull certificate,
    CSSM_CERT_TYPE * _Nonnull certificateType
);

Declaration
From
OSStatus SecCertificateSetPreference (
    SecCertificateRef certificate,
    CFStringRef name,
    uint32 keyUsage,
    CFDateRef date
);
To
OSStatus SecCertificateSetPreference (
    SecCertificateRef _Nonnull certificate,
    CFStringRef _Nonnull name,
    uint32 keyUsage,
    CFDateRef _Nullable date
);

Declaration
From
OSStatus SecCertificateSetPreferred (
    SecCertificateRef certificate,
    CFStringRef name,
    CFArrayRef keyUsage
);
To
OSStatus SecCertificateSetPreferred (
    SecCertificateRef _Nullable certificate,
    CFStringRef _Nonnull name,
    CFArrayRef _Nullable keyUsage
);

SecCode.h

Declaration
From
OSStatus SecCodeCheckValidity (
    SecCodeRef code,
    SecCSFlags flags,
    SecRequirementRef requirement
);
To
OSStatus SecCodeCheckValidity (
    SecCodeRef _Nonnull code,
    SecCSFlags flags,
    SecRequirementRef _Nullable requirement
);

Declaration
From
OSStatus SecCodeCheckValidityWithErrors (
    SecCodeRef code,
    SecCSFlags flags,
    SecRequirementRef requirement,
    CFErrorRef *errors
);
To
OSStatus SecCodeCheckValidityWithErrors (
    SecCodeRef _Nonnull code,
    SecCSFlags flags,
    SecRequirementRef _Nullable requirement,
    CFErrorRef  _Nullable * _Nullable errors
);

Declaration
From
OSStatus SecCodeCopyDesignatedRequirement (
    SecStaticCodeRef code,
    SecCSFlags flags,
    SecRequirementRef *requirement
);
To
OSStatus SecCodeCopyDesignatedRequirement (
    SecStaticCodeRef _Nonnull code,
    SecCSFlags flags,
    SecRequirementRef  _Nullable * _Nonnull requirement
);

Declaration
From
OSStatus SecCodeCopyGuestWithAttributes (
    SecCodeRef host,
    CFDictionaryRef attributes,
    SecCSFlags flags,
    SecCodeRef *guest
);
To
OSStatus SecCodeCopyGuestWithAttributes (
    SecCodeRef _Nullable host,
    CFDictionaryRef _Nullable attributes,
    SecCSFlags flags,
    SecCodeRef  _Nullable * _Nonnull guest
);

Declaration
From
OSStatus SecCodeCopyHost (
    SecCodeRef guest,
    SecCSFlags flags,
    SecCodeRef *host
);
To
OSStatus SecCodeCopyHost (
    SecCodeRef _Nonnull guest,
    SecCSFlags flags,
    SecCodeRef  _Nullable * _Nonnull host
);

Declaration
From
OSStatus SecCodeCopyPath (
    SecStaticCodeRef staticCode,
    SecCSFlags flags,
    CFURLRef *path
);
To
OSStatus SecCodeCopyPath (
    SecStaticCodeRef _Nonnull staticCode,
    SecCSFlags flags,
    CFURLRef  _Nullable * _Nonnull path
);

Declaration
From
OSStatus SecCodeCopySelf (
    SecCSFlags flags,
    SecCodeRef *self
);
To
OSStatus SecCodeCopySelf (
    SecCSFlags flags,
    SecCodeRef  _Nullable * _Nonnull self
);

Declaration
From
OSStatus SecCodeCopySigningInformation (
    SecStaticCodeRef code,
    SecCSFlags flags,
    CFDictionaryRef *information
);
To
OSStatus SecCodeCopySigningInformation (
    SecStaticCodeRef _Nonnull code,
    SecCSFlags flags,
    CFDictionaryRef  _Nullable * _Nonnull information
);

Declaration
From
OSStatus SecCodeCopyStaticCode (
    SecCodeRef code,
    SecCSFlags flags,
    SecStaticCodeRef *staticCode
);
To
OSStatus SecCodeCopyStaticCode (
    SecCodeRef _Nonnull code,
    SecCSFlags flags,
    SecStaticCodeRef  _Nullable * _Nonnull staticCode
);

Declaration
From
OSStatus SecCodeMapMemory (
    SecStaticCodeRef code,
    SecCSFlags flags
);
To
OSStatus SecCodeMapMemory (
    SecStaticCodeRef _Nonnull code,
    SecCSFlags flags
);

SecCodeHost.h

Declaration
From
OSStatus SecHostCreateGuest (
    SecGuestRef host,
    uint32_t status,
    CFURLRef path,
    CFDictionaryRef attributes,
    SecCSFlags flags,
    SecGuestRef *newGuest
);
To
OSStatus SecHostCreateGuest (
    SecGuestRef host,
    uint32_t status,
    CFURLRef _Nonnull path,
    CFDictionaryRef _Nullable attributes,
    SecCSFlags flags,
    SecGuestRef * _Nonnull newGuest
);

Declaration
From
OSStatus SecHostSelectedGuest (
    SecCSFlags flags,
    SecGuestRef *guestRef
);
To
OSStatus SecHostSelectedGuest (
    SecCSFlags flags,
    SecGuestRef * _Nonnull guestRef
);

Declaration
From
OSStatus SecHostSetGuestStatus (
    SecGuestRef guestRef,
    uint32_t status,
    CFDictionaryRef attributes,
    SecCSFlags flags
);
To
OSStatus SecHostSetGuestStatus (
    SecGuestRef guestRef,
    uint32_t status,
    CFDictionaryRef _Nullable attributes,
    SecCSFlags flags
);

SecCustomTransform.h

Declaration
From
CFTypeRef SecTranformCustomGetAttribute (
    SecTransformImplementationRef ref,
    SecTransformStringOrAttributeRef attribute,
    SecTransformMetaAttributeType type
);
To
CFTypeRef _Nullable SecTranformCustomGetAttribute (
    SecTransformImplementationRef _Nonnull ref,
    SecTransformStringOrAttributeRef _Nonnull attribute,
    SecTransformMetaAttributeType type
);

Declaration
From
SecTransformRef SecTransformCreate (
    CFStringRef name,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecTransformCreate (
    CFStringRef _Nonnull name,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFTypeRef SecTransformCustomGetAttribute (
    SecTransformImplementationRef ref,
    SecTransformStringOrAttributeRef attribute,
    SecTransformMetaAttributeType type
);
To
CFTypeRef _Nullable SecTransformCustomGetAttribute (
    SecTransformImplementationRef _Nonnull ref,
    SecTransformStringOrAttributeRef _Nonnull attribute,
    SecTransformMetaAttributeType type
);

Declaration
From
CFTypeRef SecTransformCustomSetAttribute (
    SecTransformImplementationRef ref,
    SecTransformStringOrAttributeRef attribute,
    SecTransformMetaAttributeType type,
    CFTypeRef value
);
To
CFTypeRef _Nullable SecTransformCustomSetAttribute (
    SecTransformImplementationRef _Nonnull ref,
    SecTransformStringOrAttributeRef _Nonnull attribute,
    SecTransformMetaAttributeType type,
    CFTypeRef _Nullable value
);

Declaration
From
CFTypeRef SecTransformNoData (
    void
);
To
CFTypeRef _Nonnull SecTransformNoData (
    void
);

Declaration
From
CFTypeRef SecTransformPushbackAttribute (
    SecTransformImplementationRef ref,
    SecTransformStringOrAttributeRef attribute,
    CFTypeRef value
);
To
CFTypeRef _Nullable SecTransformPushbackAttribute (
    SecTransformImplementationRef _Nonnull ref,
    SecTransformStringOrAttributeRef _Nonnull attribute,
    CFTypeRef _Nonnull value
);

Declaration
From
Boolean SecTransformRegister (
    CFStringRef uniqueName,
    SecTransformCreateFP createTransformFunction,
    CFErrorRef *error
);
To
Boolean SecTransformRegister (
    CFStringRef _Nonnull uniqueName,
    SecTransformCreateFP _Nonnull createTransformFunction,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFErrorRef SecTransformSetAttributeAction (
    SecTransformImplementationRef ref,
    CFStringRef action,
    SecTransformStringOrAttributeRef attribute,
    SecTransformAttributeActionBlock newAction
);
To
CFErrorRef _Nullable SecTransformSetAttributeAction (
    SecTransformImplementationRef _Nonnull ref,
    CFStringRef _Nonnull action,
    SecTransformStringOrAttributeRef _Nullable attribute,
    SecTransformAttributeActionBlock _Nonnull newAction
);

Declaration
From
CFErrorRef SecTransformSetDataAction (
    SecTransformImplementationRef ref,
    CFStringRef action,
    SecTransformDataBlock newAction
);
To
CFErrorRef _Nullable SecTransformSetDataAction (
    SecTransformImplementationRef _Nonnull ref,
    CFStringRef _Nonnull action,
    SecTransformDataBlock _Nonnull newAction
);

Declaration
From
CFErrorRef SecTransformSetTransformAction (
    SecTransformImplementationRef ref,
    CFStringRef action,
    SecTransformActionBlock newAction
);
To
CFErrorRef _Nullable SecTransformSetTransformAction (
    SecTransformImplementationRef _Nonnull ref,
    CFStringRef _Nonnull action,
    SecTransformActionBlock _Nonnull newAction
);

SecDecodeTransform.h

Declaration
From
SecTransformRef SecDecodeTransformCreate (
    CFTypeRef DecodeType,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecDecodeTransformCreate (
    CFTypeRef _Nonnull DecodeType,
    CFErrorRef  _Nullable * _Nullable error
);

SecDigestTransform.h

Declaration
From
SecTransformRef SecDigestTransformCreate (
    CFTypeRef digestType,
    CFIndex digestLength,
    CFErrorRef *error
);
To
SecTransformRef _Nonnull SecDigestTransformCreate (
    CFTypeRef _Nullable digestType,
    CFIndex digestLength,
    CFErrorRef  _Nullable * _Nullable error
);

SecEncodeTransform.h

Declaration
From
SecTransformRef SecEncodeTransformCreate (
    CFTypeRef encodeType,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecEncodeTransformCreate (
    CFTypeRef _Nonnull encodeType,
    CFErrorRef  _Nullable * _Nullable error
);

SecEncryptTransform.h

Declaration
From
SecTransformRef SecDecryptTransformCreate (
    SecKeyRef keyRef,
    CFErrorRef *error
);
To
SecTransformRef _Nonnull SecDecryptTransformCreate (
    SecKeyRef _Nonnull keyRef,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
SecTransformRef SecEncryptTransformCreate (
    SecKeyRef keyRef,
    CFErrorRef *error
);
To
SecTransformRef _Nonnull SecEncryptTransformCreate (
    SecKeyRef _Nonnull keyRef,
    CFErrorRef  _Nullable * _Nullable error
);

SecIdentity.h

Declaration
From
OSStatus SecIdentityCopyCertificate (
    SecIdentityRef identityRef,
    SecCertificateRef *certificateRef
);
To
OSStatus SecIdentityCopyCertificate (
    SecIdentityRef _Nonnull identityRef,
    SecCertificateRef  _Nullable * _Nonnull certificateRef
);

Declaration
From
OSStatus SecIdentityCopyPreference (
    CFStringRef name,
    CSSM_KEYUSE keyUsage,
    CFArrayRef validIssuers,
    SecIdentityRef *identity
);
To
OSStatus SecIdentityCopyPreference (
    CFStringRef _Nonnull name,
    CSSM_KEYUSE keyUsage,
    CFArrayRef _Nullable validIssuers,
    SecIdentityRef  _Nullable * _Nonnull identity
);

Declaration
From
SecIdentityRef SecIdentityCopyPreferred (
    CFStringRef name,
    CFArrayRef keyUsage,
    CFArrayRef validIssuers
);
To
SecIdentityRef _Nullable SecIdentityCopyPreferred (
    CFStringRef _Nonnull name,
    CFArrayRef _Nullable keyUsage,
    CFArrayRef _Nullable validIssuers
);

Declaration
From
OSStatus SecIdentityCopyPrivateKey (
    SecIdentityRef identityRef,
    SecKeyRef *privateKeyRef
);
To
OSStatus SecIdentityCopyPrivateKey (
    SecIdentityRef _Nonnull identityRef,
    SecKeyRef  _Nullable * _Nonnull privateKeyRef
);

Declaration
From
OSStatus SecIdentityCopySystemIdentity (
    CFStringRef domain,
    SecIdentityRef *idRef,
    CFStringRef *actualDomain
);
To
OSStatus SecIdentityCopySystemIdentity (
    CFStringRef _Nonnull domain,
    SecIdentityRef  _Nullable * _Nonnull idRef,
    CFStringRef  _Nullable * _Nullable actualDomain
);

Declaration
From
OSStatus SecIdentityCreateWithCertificate (
    CFTypeRef keychainOrArray,
    SecCertificateRef certificateRef,
    SecIdentityRef *identityRef
);
To
OSStatus SecIdentityCreateWithCertificate (
    CFTypeRef _Nullable keychainOrArray,
    SecCertificateRef _Nonnull certificateRef,
    SecIdentityRef  _Nullable * _Nonnull identityRef
);

Declaration
From
OSStatus SecIdentitySetPreference (
    SecIdentityRef identity,
    CFStringRef name,
    CSSM_KEYUSE keyUsage
);
To
OSStatus SecIdentitySetPreference (
    SecIdentityRef _Nonnull identity,
    CFStringRef _Nonnull name,
    CSSM_KEYUSE keyUsage
);

Declaration
From
OSStatus SecIdentitySetPreferred (
    SecIdentityRef identity,
    CFStringRef name,
    CFArrayRef keyUsage
);
To
OSStatus SecIdentitySetPreferred (
    SecIdentityRef _Nullable identity,
    CFStringRef _Nonnull name,
    CFArrayRef _Nullable keyUsage
);

Declaration
From
OSStatus SecIdentitySetSystemIdentity (
    CFStringRef domain,
    SecIdentityRef idRef
);
To
OSStatus SecIdentitySetSystemIdentity (
    CFStringRef _Nonnull domain,
    SecIdentityRef _Nullable idRef
);

SecIdentitySearch.h

Declaration
From
OSStatus SecIdentitySearchCopyNext (
    SecIdentitySearchRef searchRef,
    SecIdentityRef *identity
);
To
OSStatus SecIdentitySearchCopyNext (
    SecIdentitySearchRef _Nonnull searchRef,
    SecIdentityRef  _Nullable * _Nullable identity
);

Declaration
From
OSStatus SecIdentitySearchCreate (
    CFTypeRef keychainOrArray,
    CSSM_KEYUSE keyUsage,
    SecIdentitySearchRef *searchRef
);
To
OSStatus SecIdentitySearchCreate (
    CFTypeRef _Nullable keychainOrArray,
    CSSM_KEYUSE keyUsage,
    SecIdentitySearchRef  _Nullable * _Nullable searchRef
);

SecImportExport.h

Declaration
From
OSStatus SecItemExport (
    CFTypeRef secItemOrArray,
    SecExternalFormat outputFormat,
    SecItemImportExportFlags flags,
    const SecItemImportExportKeyParameters *keyParams,
    CFDataRef *exportedData
);
To
OSStatus SecItemExport (
    CFTypeRef _Nonnull secItemOrArray,
    SecExternalFormat outputFormat,
    SecItemImportExportFlags flags,
    const SecItemImportExportKeyParameters * _Nullable keyParams,
    CFDataRef  _Nullable * _Nonnull exportedData
);

Declaration
From
OSStatus SecItemImport (
    CFDataRef importedData,
    CFStringRef fileNameOrExtension,
    SecExternalFormat *inputFormat,
    SecExternalItemType *itemType,
    SecItemImportExportFlags flags,
    const SecItemImportExportKeyParameters *keyParams,
    SecKeychainRef importKeychain,
    CFArrayRef *outItems
);
To
OSStatus SecItemImport (
    CFDataRef _Nonnull importedData,
    CFStringRef _Nullable fileNameOrExtension,
    SecExternalFormat * _Nullable inputFormat,
    SecExternalItemType * _Nullable itemType,
    SecItemImportExportFlags flags,
    const SecItemImportExportKeyParameters * _Nullable keyParams,
    SecKeychainRef _Nullable importKeychain,
    CFArrayRef  _Nullable * _Nullable outItems
);

Declaration
From
OSStatus SecKeychainItemExport (
    CFTypeRef keychainItemOrArray,
    SecExternalFormat outputFormat,
    SecItemImportExportFlags flags,
    const SecKeyImportExportParameters *keyParams,
    CFDataRef *exportedData
);
To
OSStatus SecKeychainItemExport (
    CFTypeRef _Nonnull keychainItemOrArray,
    SecExternalFormat outputFormat,
    SecItemImportExportFlags flags,
    const SecKeyImportExportParameters * _Nullable keyParams,
    CFDataRef  _Nullable * _Nonnull exportedData
);

Declaration
From
OSStatus SecKeychainItemImport (
    CFDataRef importedData,
    CFStringRef fileNameOrExtension,
    SecExternalFormat *inputFormat,
    SecExternalItemType *itemType,
    SecItemImportExportFlags flags,
    const SecKeyImportExportParameters *keyParams,
    SecKeychainRef importKeychain,
    CFArrayRef *outItems
);
To
OSStatus SecKeychainItemImport (
    CFDataRef _Nonnull importedData,
    CFStringRef _Nullable fileNameOrExtension,
    SecExternalFormat * _Nullable inputFormat,
    SecExternalItemType * _Nullable itemType,
    SecItemImportExportFlags flags,
    const SecKeyImportExportParameters * _Nullable keyParams,
    SecKeychainRef _Nullable importKeychain,
    CFArrayRef  _Nullable * _Nullable outItems
);

Declaration
From
OSStatus SecPKCS12Import (
    CFDataRef pkcs12_data,
    CFDictionaryRef options,
    CFArrayRef *items
);
To
OSStatus SecPKCS12Import (
    CFDataRef _Nonnull pkcs12_data,
    CFDictionaryRef _Nonnull options,
    CFArrayRef  _Nullable * _Nonnull items
);

SecItem.h

Modified SecItemAdd()
Declaration
From
OSStatus SecItemAdd (
    CFDictionaryRef attributes,
    CFTypeRef *result
);
To
OSStatus SecItemAdd (
    CFDictionaryRef _Nonnull attributes,
    CFTypeRef  _Nullable * _Nullable result
);

Declaration
From
OSStatus SecItemCopyMatching (
    CFDictionaryRef query,
    CFTypeRef *result
);
To
OSStatus SecItemCopyMatching (
    CFDictionaryRef _Nonnull query,
    CFTypeRef  _Nullable * _Nullable result
);

Declaration
From
OSStatus SecItemDelete (
    CFDictionaryRef query
);
To
OSStatus SecItemDelete (
    CFDictionaryRef _Nonnull query
);

Declaration
From
OSStatus SecItemUpdate (
    CFDictionaryRef query,
    CFDictionaryRef attributesToUpdate
);
To
OSStatus SecItemUpdate (
    CFDictionaryRef _Nonnull query,
    CFDictionaryRef _Nonnull attributesToUpdate
);

SecKey.h

Declaration
From
SecKeyRef SecKeyCreateFromData (
    CFDictionaryRef parameters,
    CFDataRef keyData,
    CFErrorRef *error
);
To
SecKeyRef _Nullable SecKeyCreateFromData (
    CFDictionaryRef _Nonnull parameters,
    CFDataRef _Nonnull keyData,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
OSStatus SecKeyCreatePair (
    SecKeychainRef keychainRef,
    CSSM_ALGORITHMS algorithm,
    uint32 keySizeInBits,
    CSSM_CC_HANDLE contextHandle,
    CSSM_KEYUSE publicKeyUsage,
    uint32 publicKeyAttr,
    CSSM_KEYUSE privateKeyUsage,
    uint32 privateKeyAttr,
    SecAccessRef initialAccess,
    SecKeyRef *publicKey,
    SecKeyRef *privateKey
);
To
OSStatus SecKeyCreatePair (
    SecKeychainRef _Nullable keychainRef,
    CSSM_ALGORITHMS algorithm,
    uint32 keySizeInBits,
    CSSM_CC_HANDLE contextHandle,
    CSSM_KEYUSE publicKeyUsage,
    uint32 publicKeyAttr,
    CSSM_KEYUSE privateKeyUsage,
    uint32 privateKeyAttr,
    SecAccessRef _Nullable initialAccess,
    SecKeyRef  _Nullable * _Nullable publicKey,
    SecKeyRef  _Nullable * _Nullable privateKey
);

Declaration
From
SecKeyRef SecKeyDeriveFromPassword (
    CFStringRef password,
    CFDictionaryRef parameters,
    CFErrorRef *error
);
To
SecKeyRef _Nullable SecKeyDeriveFromPassword (
    CFStringRef _Nonnull password,
    CFDictionaryRef _Nonnull parameters,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
OSStatus SecKeyGenerate (
    SecKeychainRef keychainRef,
    CSSM_ALGORITHMS algorithm,
    uint32 keySizeInBits,
    CSSM_CC_HANDLE contextHandle,
    CSSM_KEYUSE keyUsage,
    uint32 keyAttr,
    SecAccessRef initialAccess,
    SecKeyRef *keyRef
);
To
OSStatus SecKeyGenerate (
    SecKeychainRef _Nullable keychainRef,
    CSSM_ALGORITHMS algorithm,
    uint32 keySizeInBits,
    CSSM_CC_HANDLE contextHandle,
    CSSM_KEYUSE keyUsage,
    uint32 keyAttr,
    SecAccessRef _Nullable initialAccess,
    SecKeyRef  _Nullable * _Nullable keyRef
);

Declaration
From
OSStatus SecKeyGeneratePair (
    CFDictionaryRef parameters,
    SecKeyRef *publicKey,
    SecKeyRef *privateKey
);
To
OSStatus SecKeyGeneratePair (
    CFDictionaryRef _Nonnull parameters,
    SecKeyRef  _Nullable * _Nullable publicKey,
    SecKeyRef  _Nullable * _Nullable privateKey
);

Declaration
From
void SecKeyGeneratePairAsync (
    CFDictionaryRef parameters,
    dispatch_queue_t deliveryQueue,
    SecKeyGeneratePairBlock result
);
To
void SecKeyGeneratePairAsync (
    CFDictionaryRef _Nonnull parameters,
    dispatch_queue_t _Nonnull deliveryQueue,
    SecKeyGeneratePairBlock _Nonnull result
);

Declaration
From
SecKeyRef SecKeyGenerateSymmetric (
    CFDictionaryRef parameters,
    CFErrorRef *error
);
To
SecKeyRef _Nullable SecKeyGenerateSymmetric (
    CFDictionaryRef _Nonnull parameters,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
size_t SecKeyGetBlockSize (
    SecKeyRef key
);
To
size_t SecKeyGetBlockSize (
    SecKeyRef _Nonnull key
);

Declaration
From
OSStatus SecKeyGetCredentials (
    SecKeyRef keyRef,
    CSSM_ACL_AUTHORIZATION_TAG operation,
    SecCredentialType credentialType,
    const CSSM_ACCESS_CREDENTIALS **outCredentials
);
To
OSStatus SecKeyGetCredentials (
    SecKeyRef _Nonnull keyRef,
    CSSM_ACL_AUTHORIZATION_TAG operation,
    SecCredentialType credentialType,
    const CSSM_ACCESS_CREDENTIALS * _Nullable * _Nonnull outCredentials
);

Declaration
From
OSStatus SecKeyGetCSPHandle (
    SecKeyRef keyRef,
    CSSM_CSP_HANDLE *cspHandle
);
To
OSStatus SecKeyGetCSPHandle (
    SecKeyRef _Nonnull keyRef,
    CSSM_CSP_HANDLE * _Nonnull cspHandle
);

Declaration
From
OSStatus SecKeyGetCSSMKey (
    SecKeyRef key,
    const CSSM_KEY **cssmKey
);
To
OSStatus SecKeyGetCSSMKey (
    SecKeyRef _Nonnull key,
    const CSSM_KEY * _Nullable * _Nonnull cssmKey
);

Declaration
From
SecKeyRef SecKeyUnwrapSymmetric (
    CFDataRef *keyToUnwrap,
    SecKeyRef unwrappingKey,
    CFDictionaryRef parameters,
    CFErrorRef *error
);
To
SecKeyRef _Nullable SecKeyUnwrapSymmetric (
    CFDataRef  _Nullable * _Nonnull keyToUnwrap,
    SecKeyRef _Nonnull unwrappingKey,
    CFDictionaryRef _Nonnull parameters,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFDataRef SecKeyWrapSymmetric (
    SecKeyRef keyToWrap,
    SecKeyRef wrappingKey,
    CFDictionaryRef parameters,
    CFErrorRef *error
);
To
CFDataRef _Nullable SecKeyWrapSymmetric (
    SecKeyRef _Nonnull keyToWrap,
    SecKeyRef _Nonnull wrappingKey,
    CFDictionaryRef _Nonnull parameters,
    CFErrorRef  _Nullable * _Nullable error
);

SecKeychain.h

Declaration
From
OSStatus SecKeychainAddCallback (
    SecKeychainCallback callbackFunction,
    SecKeychainEventMask eventMask,
    void *userContext
);
To
OSStatus SecKeychainAddCallback (
    SecKeychainCallback _Nonnull callbackFunction,
    SecKeychainEventMask eventMask,
    void * _Nullable userContext
);

Declaration
From
OSStatus SecKeychainAddGenericPassword (
    SecKeychainRef keychain,
    UInt32 serviceNameLength,
    const char *serviceName,
    UInt32 accountNameLength,
    const char *accountName,
    UInt32 passwordLength,
    const void *passwordData,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainAddGenericPassword (
    SecKeychainRef _Nullable keychain,
    UInt32 serviceNameLength,
    const char * _Nullable serviceName,
    UInt32 accountNameLength,
    const char * _Nullable accountName,
    UInt32 passwordLength,
    const void * _Nonnull passwordData,
    SecKeychainItemRef  _Nullable * _Nullable itemRef
);

Declaration
From
OSStatus SecKeychainAddInternetPassword (
    SecKeychainRef keychain,
    UInt32 serverNameLength,
    const char *serverName,
    UInt32 securityDomainLength,
    const char *securityDomain,
    UInt32 accountNameLength,
    const char *accountName,
    UInt32 pathLength,
    const char *path,
    UInt16 port,
    SecProtocolType protocol,
    SecAuthenticationType authenticationType,
    UInt32 passwordLength,
    const void *passwordData,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainAddInternetPassword (
    SecKeychainRef _Nullable keychain,
    UInt32 serverNameLength,
    const char * _Nullable serverName,
    UInt32 securityDomainLength,
    const char * _Nullable securityDomain,
    UInt32 accountNameLength,
    const char * _Nullable accountName,
    UInt32 pathLength,
    const char * _Nullable path,
    UInt16 port,
    SecProtocolType protocol,
    SecAuthenticationType authenticationType,
    UInt32 passwordLength,
    const void * _Nonnull passwordData,
    SecKeychainItemRef  _Nullable * _Nullable itemRef
);

Declaration
From
OSStatus SecKeychainAttributeInfoForItemID (
    SecKeychainRef keychain,
    UInt32 itemID,
    SecKeychainAttributeInfo **info
);
To
OSStatus SecKeychainAttributeInfoForItemID (
    SecKeychainRef _Nullable keychain,
    UInt32 itemID,
    SecKeychainAttributeInfo * _Nullable * _Nonnull info
);

Declaration
From
OSStatus SecKeychainCopyAccess (
    SecKeychainRef keychain,
    SecAccessRef *access
);
To
OSStatus SecKeychainCopyAccess (
    SecKeychainRef _Nullable keychain,
    SecAccessRef  _Nullable * _Nonnull access
);

Declaration
From
OSStatus SecKeychainCopyDefault (
    SecKeychainRef *keychain
);
To
OSStatus SecKeychainCopyDefault (
    SecKeychainRef  _Nullable * _Nonnull keychain
);

Declaration
From
OSStatus SecKeychainCopyDomainDefault (
    SecPreferencesDomain domain,
    SecKeychainRef *keychain
);
To
OSStatus SecKeychainCopyDomainDefault (
    SecPreferencesDomain domain,
    SecKeychainRef  _Nullable * _Nonnull keychain
);

Declaration
From
OSStatus SecKeychainCopyDomainSearchList (
    SecPreferencesDomain domain,
    CFArrayRef *searchList
);
To
OSStatus SecKeychainCopyDomainSearchList (
    SecPreferencesDomain domain,
    CFArrayRef  _Nullable * _Nonnull searchList
);

Declaration
From
OSStatus SecKeychainCopySearchList (
    CFArrayRef *searchList
);
To
OSStatus SecKeychainCopySearchList (
    CFArrayRef  _Nullable * _Nonnull searchList
);

Declaration
From
OSStatus SecKeychainCopySettings (
    SecKeychainRef keychain,
    SecKeychainSettings *outSettings
);
To
OSStatus SecKeychainCopySettings (
    SecKeychainRef _Nullable keychain,
    SecKeychainSettings * _Nonnull outSettings
);

Declaration
From
OSStatus SecKeychainCreate (
    const char *pathName,
    UInt32 passwordLength,
    const void *password,
    Boolean promptUser,
    SecAccessRef initialAccess,
    SecKeychainRef *keychain
);
To
OSStatus SecKeychainCreate (
    const char * _Nonnull pathName,
    UInt32 passwordLength,
    const void * _Nullable password,
    Boolean promptUser,
    SecAccessRef _Nullable initialAccess,
    SecKeychainRef  _Nullable * _Nonnull keychain
);

Declaration
From
OSStatus SecKeychainDelete (
    SecKeychainRef keychainOrArray
);
To
OSStatus SecKeychainDelete (
    SecKeychainRef _Nullable keychainOrArray
);

Declaration
From
OSStatus SecKeychainFindGenericPassword (
    CFTypeRef keychainOrArray,
    UInt32 serviceNameLength,
    const char *serviceName,
    UInt32 accountNameLength,
    const char *accountName,
    UInt32 *passwordLength,
    void **passwordData,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainFindGenericPassword (
    CFTypeRef _Nullable keychainOrArray,
    UInt32 serviceNameLength,
    const char * _Nullable serviceName,
    UInt32 accountNameLength,
    const char * _Nullable accountName,
    UInt32 * _Nullable passwordLength,
    void * _Nullable * _Nullable passwordData,
    SecKeychainItemRef  _Nullable * _Nullable itemRef
);

Declaration
From
OSStatus SecKeychainFindInternetPassword (
    CFTypeRef keychainOrArray,
    UInt32 serverNameLength,
    const char *serverName,
    UInt32 securityDomainLength,
    const char *securityDomain,
    UInt32 accountNameLength,
    const char *accountName,
    UInt32 pathLength,
    const char *path,
    UInt16 port,
    SecProtocolType protocol,
    SecAuthenticationType authenticationType,
    UInt32 *passwordLength,
    void **passwordData,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainFindInternetPassword (
    CFTypeRef _Nullable keychainOrArray,
    UInt32 serverNameLength,
    const char * _Nullable serverName,
    UInt32 securityDomainLength,
    const char * _Nullable securityDomain,
    UInt32 accountNameLength,
    const char * _Nullable accountName,
    UInt32 pathLength,
    const char * _Nullable path,
    UInt16 port,
    SecProtocolType protocol,
    SecAuthenticationType authenticationType,
    UInt32 * _Nullable passwordLength,
    void * _Nullable * _Nullable passwordData,
    SecKeychainItemRef  _Nullable * _Nullable itemRef
);

Declaration
From
OSStatus SecKeychainFreeAttributeInfo (
    SecKeychainAttributeInfo *info
);
To
OSStatus SecKeychainFreeAttributeInfo (
    SecKeychainAttributeInfo * _Nonnull info
);

Declaration
From
OSStatus SecKeychainGetCSPHandle (
    SecKeychainRef keychain,
    CSSM_CSP_HANDLE *cspHandle
);
To
OSStatus SecKeychainGetCSPHandle (
    SecKeychainRef _Nullable keychain,
    CSSM_CSP_HANDLE * _Nonnull cspHandle
);

Declaration
From
OSStatus SecKeychainGetDLDBHandle (
    SecKeychainRef keychain,
    CSSM_DL_DB_HANDLE *dldbHandle
);
To
OSStatus SecKeychainGetDLDBHandle (
    SecKeychainRef _Nullable keychain,
    CSSM_DL_DB_HANDLE * _Nonnull dldbHandle
);

Declaration
From
OSStatus SecKeychainGetPath (
    SecKeychainRef keychain,
    UInt32 *ioPathLength,
    char *pathName
);
To
OSStatus SecKeychainGetPath (
    SecKeychainRef _Nullable keychain,
    UInt32 * _Nonnull ioPathLength,
    char * _Nonnull pathName
);

Declaration
From
OSStatus SecKeychainGetPreferenceDomain (
    SecPreferencesDomain *domain
);
To
OSStatus SecKeychainGetPreferenceDomain (
    SecPreferencesDomain * _Nonnull domain
);

Declaration
From
OSStatus SecKeychainGetStatus (
    SecKeychainRef keychain,
    SecKeychainStatus *keychainStatus
);
To
OSStatus SecKeychainGetStatus (
    SecKeychainRef _Nullable keychain,
    SecKeychainStatus * _Nonnull keychainStatus
);

Declaration
From
OSStatus SecKeychainGetUserInteractionAllowed (
    Boolean *state
);
To
OSStatus SecKeychainGetUserInteractionAllowed (
    Boolean * _Nonnull state
);

Declaration
From
OSStatus SecKeychainGetVersion (
    UInt32 *returnVers
);
To
OSStatus SecKeychainGetVersion (
    UInt32 * _Nonnull returnVers
);

Declaration
From
OSStatus SecKeychainLock (
    SecKeychainRef keychain
);
To
OSStatus SecKeychainLock (
    SecKeychainRef _Nullable keychain
);

Declaration
From
OSStatus SecKeychainOpen (
    const char *pathName,
    SecKeychainRef *keychain
);
To
OSStatus SecKeychainOpen (
    const char * _Nonnull pathName,
    SecKeychainRef  _Nullable * _Nonnull keychain
);

Declaration
From
OSStatus SecKeychainRemoveCallback (
    SecKeychainCallback callbackFunction
);
To
OSStatus SecKeychainRemoveCallback (
    SecKeychainCallback _Nonnull callbackFunction
);

Declaration
From
OSStatus SecKeychainSetAccess (
    SecKeychainRef keychain,
    SecAccessRef access
);
To
OSStatus SecKeychainSetAccess (
    SecKeychainRef _Nullable keychain,
    SecAccessRef _Nonnull access
);

Declaration
From
OSStatus SecKeychainSetDefault (
    SecKeychainRef keychain
);
To
OSStatus SecKeychainSetDefault (
    SecKeychainRef _Nullable keychain
);

Declaration
From
OSStatus SecKeychainSetDomainDefault (
    SecPreferencesDomain domain,
    SecKeychainRef keychain
);
To
OSStatus SecKeychainSetDomainDefault (
    SecPreferencesDomain domain,
    SecKeychainRef _Nullable keychain
);

Declaration
From
OSStatus SecKeychainSetDomainSearchList (
    SecPreferencesDomain domain,
    CFArrayRef searchList
);
To
OSStatus SecKeychainSetDomainSearchList (
    SecPreferencesDomain domain,
    CFArrayRef _Nonnull searchList
);

Declaration
From
OSStatus SecKeychainSetSearchList (
    CFArrayRef searchList
);
To
OSStatus SecKeychainSetSearchList (
    CFArrayRef _Nonnull searchList
);

Declaration
From
OSStatus SecKeychainSetSettings (
    SecKeychainRef keychain,
    const SecKeychainSettings *newSettings
);
To
OSStatus SecKeychainSetSettings (
    SecKeychainRef _Nullable keychain,
    const SecKeychainSettings * _Nonnull newSettings
);

Declaration
From
OSStatus SecKeychainUnlock (
    SecKeychainRef keychain,
    UInt32 passwordLength,
    const void *password,
    Boolean usePassword
);
To
OSStatus SecKeychainUnlock (
    SecKeychainRef _Nullable keychain,
    UInt32 passwordLength,
    const void * _Nullable password,
    Boolean usePassword
);

SecKeychainItem.h

Declaration
From
OSStatus SecKeychainItemCopyAccess (
    SecKeychainItemRef itemRef,
    SecAccessRef *access
);
To
OSStatus SecKeychainItemCopyAccess (
    SecKeychainItemRef _Nonnull itemRef,
    SecAccessRef  _Nullable * _Nonnull access
);

Declaration
From
OSStatus SecKeychainItemCopyAttributesAndData (
    SecKeychainItemRef itemRef,
    SecKeychainAttributeInfo *info,
    SecItemClass *itemClass,
    SecKeychainAttributeList **attrList,
    UInt32 *length,
    void **outData
);
To
OSStatus SecKeychainItemCopyAttributesAndData (
    SecKeychainItemRef _Nonnull itemRef,
    SecKeychainAttributeInfo * _Nullable info,
    SecItemClass * _Nullable itemClass,
    SecKeychainAttributeList * _Nullable * _Nullable attrList,
    UInt32 * _Nullable length,
    void * _Nullable * _Nullable outData
);

Declaration
From
OSStatus SecKeychainItemCopyContent (
    SecKeychainItemRef itemRef,
    SecItemClass *itemClass,
    SecKeychainAttributeList *attrList,
    UInt32 *length,
    void **outData
);
To
OSStatus SecKeychainItemCopyContent (
    SecKeychainItemRef _Nonnull itemRef,
    SecItemClass * _Nullable itemClass,
    SecKeychainAttributeList * _Nullable attrList,
    UInt32 * _Nullable length,
    void * _Nullable * _Nullable outData
);

Declaration
From
OSStatus SecKeychainItemCopyFromPersistentReference (
    CFDataRef persistentItemRef,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainItemCopyFromPersistentReference (
    CFDataRef _Nonnull persistentItemRef,
    SecKeychainItemRef  _Nullable * _Nonnull itemRef
);

Declaration
From
OSStatus SecKeychainItemCopyKeychain (
    SecKeychainItemRef itemRef,
    SecKeychainRef *keychainRef
);
To
OSStatus SecKeychainItemCopyKeychain (
    SecKeychainItemRef _Nonnull itemRef,
    SecKeychainRef  _Nullable * _Nonnull keychainRef
);

Declaration
From
OSStatus SecKeychainItemCreateCopy (
    SecKeychainItemRef itemRef,
    SecKeychainRef destKeychainRef,
    SecAccessRef initialAccess,
    SecKeychainItemRef *itemCopy
);
To
OSStatus SecKeychainItemCreateCopy (
    SecKeychainItemRef _Nonnull itemRef,
    SecKeychainRef _Nullable destKeychainRef,
    SecAccessRef _Nonnull initialAccess,
    SecKeychainItemRef  _Nullable * _Nonnull itemCopy
);

Declaration
From
OSStatus SecKeychainItemCreateFromContent (
    SecItemClass itemClass,
    SecKeychainAttributeList *attrList,
    UInt32 length,
    const void *data,
    SecKeychainRef keychainRef,
    SecAccessRef initialAccess,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainItemCreateFromContent (
    SecItemClass itemClass,
    SecKeychainAttributeList * _Nonnull attrList,
    UInt32 length,
    const void * _Nullable data,
    SecKeychainRef _Nullable keychainRef,
    SecAccessRef _Nullable initialAccess,
    SecKeychainItemRef  _Nullable * _Nullable itemRef
);

Declaration
From
OSStatus SecKeychainItemCreatePersistentReference (
    SecKeychainItemRef itemRef,
    CFDataRef *persistentItemRef
);
To
OSStatus SecKeychainItemCreatePersistentReference (
    SecKeychainItemRef _Nonnull itemRef,
    CFDataRef  _Nullable * _Nonnull persistentItemRef
);

Declaration
From
OSStatus SecKeychainItemDelete (
    SecKeychainItemRef itemRef
);
To
OSStatus SecKeychainItemDelete (
    SecKeychainItemRef _Nonnull itemRef
);

Declaration
From
OSStatus SecKeychainItemFreeAttributesAndData (
    SecKeychainAttributeList *attrList,
    void *data
);
To
OSStatus SecKeychainItemFreeAttributesAndData (
    SecKeychainAttributeList * _Nullable attrList,
    void * _Nullable data
);

Declaration
From
OSStatus SecKeychainItemFreeContent (
    SecKeychainAttributeList *attrList,
    void *data
);
To
OSStatus SecKeychainItemFreeContent (
    SecKeychainAttributeList * _Nullable attrList,
    void * _Nullable data
);

Declaration
From
OSStatus SecKeychainItemGetDLDBHandle (
    SecKeychainItemRef keyItemRef,
    CSSM_DL_DB_HANDLE *dldbHandle
);
To
OSStatus SecKeychainItemGetDLDBHandle (
    SecKeychainItemRef _Nonnull keyItemRef,
    CSSM_DL_DB_HANDLE * _Nonnull dldbHandle
);

Declaration
From
OSStatus SecKeychainItemGetUniqueRecordID (
    SecKeychainItemRef itemRef,
    const CSSM_DB_UNIQUE_RECORD **uniqueRecordID
);
To
OSStatus SecKeychainItemGetUniqueRecordID (
    SecKeychainItemRef _Nonnull itemRef,
    const CSSM_DB_UNIQUE_RECORD * _Nullable * _Nonnull uniqueRecordID
);

Declaration
From
OSStatus SecKeychainItemModifyAttributesAndData (
    SecKeychainItemRef itemRef,
    const SecKeychainAttributeList *attrList,
    UInt32 length,
    const void *data
);
To
OSStatus SecKeychainItemModifyAttributesAndData (
    SecKeychainItemRef _Nonnull itemRef,
    const SecKeychainAttributeList * _Nullable attrList,
    UInt32 length,
    const void * _Nullable data
);

Declaration
From
OSStatus SecKeychainItemModifyContent (
    SecKeychainItemRef itemRef,
    const SecKeychainAttributeList *attrList,
    UInt32 length,
    const void *data
);
To
OSStatus SecKeychainItemModifyContent (
    SecKeychainItemRef _Nonnull itemRef,
    const SecKeychainAttributeList * _Nullable attrList,
    UInt32 length,
    const void * _Nullable data
);

Declaration
From
OSStatus SecKeychainItemSetAccess (
    SecKeychainItemRef itemRef,
    SecAccessRef access
);
To
OSStatus SecKeychainItemSetAccess (
    SecKeychainItemRef _Nonnull itemRef,
    SecAccessRef _Nonnull access
);

SecKeychainSearch.h

Declaration
From
OSStatus SecKeychainSearchCopyNext (
    SecKeychainSearchRef searchRef,
    SecKeychainItemRef *itemRef
);
To
OSStatus SecKeychainSearchCopyNext (
    SecKeychainSearchRef _Nonnull searchRef,
    SecKeychainItemRef  _Nullable * _Nonnull itemRef
);

Declaration
From
OSStatus SecKeychainSearchCreateFromAttributes (
    CFTypeRef keychainOrArray,
    SecItemClass itemClass,
    const SecKeychainAttributeList *attrList,
    SecKeychainSearchRef *searchRef
);
To
OSStatus SecKeychainSearchCreateFromAttributes (
    CFTypeRef _Nullable keychainOrArray,
    SecItemClass itemClass,
    const SecKeychainAttributeList * _Nullable attrList,
    SecKeychainSearchRef  _Nullable * _Nonnull searchRef
);

SecPolicy.h

Declaration
From
CFDictionaryRef SecPolicyCopyProperties (
    SecPolicyRef policyRef
);
To
CFDictionaryRef _Nonnull SecPolicyCopyProperties (
    SecPolicyRef _Nonnull policyRef
);

Declaration
From
SecPolicyRef SecPolicyCreateBasicX509 (
    void
);
To
SecPolicyRef _Nonnull SecPolicyCreateBasicX509 (
    void
);

Declaration
From
SecPolicyRef SecPolicyCreateRevocation (
    CFOptionFlags revocationFlags
);
To
SecPolicyRef _Nonnull SecPolicyCreateRevocation (
    CFOptionFlags revocationFlags
);

Declaration
From
SecPolicyRef SecPolicyCreateSSL (
    Boolean server,
    CFStringRef hostname
);
To
SecPolicyRef _Nonnull SecPolicyCreateSSL (
    Boolean server,
    CFStringRef _Nullable hostname
);

Declaration
From
SecPolicyRef SecPolicyCreateWithOID (
    CFTypeRef policyOID
);
To
SecPolicyRef _Nullable SecPolicyCreateWithOID (
    CFTypeRef _Nonnull policyOID
);

Declaration
From
SecPolicyRef SecPolicyCreateWithProperties (
    CFTypeRef policyIdentifier,
    CFDictionaryRef properties
);
To
SecPolicyRef _Nullable SecPolicyCreateWithProperties (
    CFTypeRef _Nonnull policyIdentifier,
    CFDictionaryRef _Nullable properties
);

Declaration
From
OSStatus SecPolicyGetOID (
    SecPolicyRef policyRef,
    CSSM_OID *oid
);
To
OSStatus SecPolicyGetOID (
    SecPolicyRef _Nonnull policyRef,
    CSSM_OID * _Nonnull oid
);

Declaration
From
OSStatus SecPolicyGetTPHandle (
    SecPolicyRef policyRef,
    CSSM_TP_HANDLE *tpHandle
);
To
OSStatus SecPolicyGetTPHandle (
    SecPolicyRef _Nonnull policyRef,
    CSSM_TP_HANDLE * _Nonnull tpHandle
);

Declaration
From
OSStatus SecPolicyGetValue (
    SecPolicyRef policyRef,
    CSSM_DATA *value
);
To
OSStatus SecPolicyGetValue (
    SecPolicyRef _Nonnull policyRef,
    CSSM_DATA * _Nonnull value
);

Declaration
From
OSStatus SecPolicySetProperties (
    SecPolicyRef policyRef,
    CFDictionaryRef properties
);
To
OSStatus SecPolicySetProperties (
    SecPolicyRef _Nonnull policyRef,
    CFDictionaryRef _Nonnull properties
);

Declaration
From
OSStatus SecPolicySetValue (
    SecPolicyRef policyRef,
    const CSSM_DATA *value
);
To
OSStatus SecPolicySetValue (
    SecPolicyRef _Nonnull policyRef,
    const CSSM_DATA * _Nonnull value
);

SecPolicySearch.h

Declaration
From
OSStatus SecPolicySearchCopyNext (
    SecPolicySearchRef searchRef,
    SecPolicyRef *policyRef
);
To
OSStatus SecPolicySearchCopyNext (
    SecPolicySearchRef _Nonnull searchRef,
    SecPolicyRef  _Nullable * _Nonnull policyRef
);

Declaration
From
OSStatus SecPolicySearchCreate (
    CSSM_CERT_TYPE certType,
    const CSSM_OID *policyOID,
    const CSSM_DATA *value,
    SecPolicySearchRef *searchRef
);
To
OSStatus SecPolicySearchCreate (
    CSSM_CERT_TYPE certType,
    const CSSM_OID * _Nonnull policyOID,
    const CSSM_DATA * _Nullable value,
    SecPolicySearchRef  _Nullable * _Nonnull searchRef
);

SecRandom.h

Declaration
From
int SecRandomCopyBytes (
    SecRandomRef rnd,
    size_t count,
    uint8_t *bytes
);
To
int SecRandomCopyBytes (
    SecRandomRef _Nullable rnd,
    size_t count,
    uint8_t * _Nonnull bytes
);

SecRequirement.h

Declaration
From
OSStatus SecRequirementCopyData (
    SecRequirementRef requirement,
    SecCSFlags flags,
    CFDataRef *data
);
To
OSStatus SecRequirementCopyData (
    SecRequirementRef _Nonnull requirement,
    SecCSFlags flags,
    CFDataRef  _Nullable * _Nonnull data
);

Declaration
From
OSStatus SecRequirementCopyString (
    SecRequirementRef requirement,
    SecCSFlags flags,
    CFStringRef *text
);
To
OSStatus SecRequirementCopyString (
    SecRequirementRef _Nonnull requirement,
    SecCSFlags flags,
    CFStringRef  _Nullable * _Nonnull text
);

Declaration
From
OSStatus SecRequirementCreateWithData (
    CFDataRef data,
    SecCSFlags flags,
    SecRequirementRef *requirement
);
To
OSStatus SecRequirementCreateWithData (
    CFDataRef _Nonnull data,
    SecCSFlags flags,
    SecRequirementRef  _Nullable * _Nonnull requirement
);

Declaration
From
OSStatus SecRequirementCreateWithString (
    CFStringRef text,
    SecCSFlags flags,
    SecRequirementRef *requirement
);
To
OSStatus SecRequirementCreateWithString (
    CFStringRef _Nonnull text,
    SecCSFlags flags,
    SecRequirementRef  _Nullable * _Nonnull requirement
);

Declaration
From
OSStatus SecRequirementCreateWithStringAndErrors (
    CFStringRef text,
    SecCSFlags flags,
    CFErrorRef *errors,
    SecRequirementRef *requirement
);
To
OSStatus SecRequirementCreateWithStringAndErrors (
    CFStringRef _Nonnull text,
    SecCSFlags flags,
    CFErrorRef  _Nullable * _Nullable errors,
    SecRequirementRef  _Nullable * _Nonnull requirement
);

SecSignVerifyTransform.h

Declaration
From
SecTransformRef SecSignTransformCreate (
    SecKeyRef key,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecSignTransformCreate (
    SecKeyRef _Nonnull key,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
SecTransformRef SecVerifyTransformCreate (
    SecKeyRef key,
    CFDataRef signature,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecVerifyTransformCreate (
    SecKeyRef _Nonnull key,
    CFDataRef _Nullable signature,
    CFErrorRef  _Nullable * _Nullable error
);

SecStaticCode.h

Declaration
From
OSStatus SecStaticCodeCheckValidity (
    SecStaticCodeRef staticCode,
    SecCSFlags flags,
    SecRequirementRef requirement
);
To
OSStatus SecStaticCodeCheckValidity (
    SecStaticCodeRef _Nonnull staticCode,
    SecCSFlags flags,
    SecRequirementRef _Nullable requirement
);

Declaration
From
OSStatus SecStaticCodeCheckValidityWithErrors (
    SecStaticCodeRef staticCode,
    SecCSFlags flags,
    SecRequirementRef requirement,
    CFErrorRef *errors
);
To
OSStatus SecStaticCodeCheckValidityWithErrors (
    SecStaticCodeRef _Nonnull staticCode,
    SecCSFlags flags,
    SecRequirementRef _Nullable requirement,
    CFErrorRef  _Nullable * _Nullable errors
);

Declaration
From
OSStatus SecStaticCodeCreateWithPath (
    CFURLRef path,
    SecCSFlags flags,
    SecStaticCodeRef *staticCode
);
To
OSStatus SecStaticCodeCreateWithPath (
    CFURLRef _Nonnull path,
    SecCSFlags flags,
    SecStaticCodeRef  _Nullable * _Nonnull staticCode
);

Declaration
From
OSStatus SecStaticCodeCreateWithPathAndAttributes (
    CFURLRef path,
    SecCSFlags flags,
    CFDictionaryRef attributes,
    SecStaticCodeRef *staticCode
);
To
OSStatus SecStaticCodeCreateWithPathAndAttributes (
    CFURLRef _Nonnull path,
    SecCSFlags flags,
    CFDictionaryRef _Nonnull attributes,
    SecStaticCodeRef  _Nullable * _Nonnull staticCode
);

SecTask.h

Declaration
From
CFTypeRef SecTaskCopyValueForEntitlement (
    SecTaskRef task,
    CFStringRef entitlement,
    CFErrorRef *error
);
To
CFTypeRef _Nullable SecTaskCopyValueForEntitlement (
    SecTaskRef _Nonnull task,
    CFStringRef _Nonnull entitlement,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFDictionaryRef SecTaskCopyValuesForEntitlements (
    SecTaskRef task,
    CFArrayRef entitlements,
    CFErrorRef *error
);
To
CFDictionaryRef _Nullable SecTaskCopyValuesForEntitlements (
    SecTaskRef _Nonnull task,
    CFArrayRef _Nonnull entitlements,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
SecTaskRef SecTaskCreateFromSelf (
    CFAllocatorRef allocator
);
To
SecTaskRef _Nullable SecTaskCreateFromSelf (
    CFAllocatorRef _Nullable allocator
);

Declaration
From
SecTaskRef SecTaskCreateWithAuditToken (
    CFAllocatorRef allocator,
    audit_token_t token
);
To
SecTaskRef _Nullable SecTaskCreateWithAuditToken (
    CFAllocatorRef _Nullable allocator,
    audit_token_t token
);

SecTransform.h

Declaration
From
SecGroupTransformRef SecTransformConnectTransforms (
    SecTransformRef sourceTransformRef,
    CFStringRef sourceAttributeName,
    SecTransformRef destinationTransformRef,
    CFStringRef destinationAttributeName,
    SecGroupTransformRef group,
    CFErrorRef *error
);
To
SecGroupTransformRef _Nullable SecTransformConnectTransforms (
    SecTransformRef _Nonnull sourceTransformRef,
    CFStringRef _Nonnull sourceAttributeName,
    SecTransformRef _Nonnull destinationTransformRef,
    CFStringRef _Nonnull destinationAttributeName,
    SecGroupTransformRef _Nonnull group,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
CFDictionaryRef SecTransformCopyExternalRepresentation (
    SecTransformRef transformRef
);
To
CFDictionaryRef _Nonnull SecTransformCopyExternalRepresentation (
    SecTransformRef _Nonnull transformRef
);

Declaration
From
SecTransformRef SecTransformCreateFromExternalRepresentation (
    CFDictionaryRef dictionary,
    CFErrorRef *error
);
To
SecTransformRef _Nullable SecTransformCreateFromExternalRepresentation (
    CFDictionaryRef _Nonnull dictionary,
    CFErrorRef  _Nullable * _Nullable error
);

Declaration
From
SecGroupTransformRef SecTransformCreateGroupTransform (
    void
);
To
SecGroupTransformRef _Nonnull SecTransformCreateGroupTransform (
    void
);

Declaration
From
CFTypeRef SecTransformExecute (
    SecTransformRef transformRef,
    CFErrorRef *errorRef
);
To
CFTypeRef _Nonnull SecTransformExecute (
    SecTransformRef _Nonnull transformRef,
    CFErrorRef  _Nullable * _Nullable errorRef
);

Declaration
From
void SecTransformExecuteAsync (
    SecTransformRef transformRef,
    dispatch_queue_t deliveryQueue,
    SecMessageBlock deliveryBlock
);
To
void SecTransformExecuteAsync (
    SecTransformRef _Nonnull transformRef,
    dispatch_queue_t _Nonnull deliveryQueue,
    SecMessageBlock _Nonnull deliveryBlock
);

Declaration
From
SecTransformRef SecTransformFindByName (
    SecGroupTransformRef transform,
    CFStringRef name
);
To
SecTransformRef _Nullable SecTransformFindByName (
    SecGroupTransformRef _Nonnull transform,
    CFStringRef _Nonnull name
);

Declaration
From
CFTypeRef SecTransformGetAttribute (
    SecTransformRef transformRef,
    CFStringRef key
);
To
CFTypeRef _Nullable SecTransformGetAttribute (
    SecTransformRef _Nonnull transformRef,
    CFStringRef _Nonnull key
);

Declaration
From
Boolean SecTransformSetAttribute (
    SecTransformRef transformRef,
    CFStringRef key,
    CFTypeRef value,
    CFErrorRef *error
);
To
Boolean SecTransformSetAttribute (
    SecTransformRef _Nonnull transformRef,
    CFStringRef _Nonnull key,
    CFTypeRef _Nonnull value,
    CFErrorRef  _Nullable * _Nullable error
);

SecTransformReadTransform.h

Declaration
From
SecTransformRef SecTransformCreateReadTransformWithReadStream (
    CFReadStreamRef inputStream
);
To
SecTransformRef _Nonnull SecTransformCreateReadTransformWithReadStream (
    CFReadStreamRef _Nonnull inputStream
);

SecTrust.h

Declaration
From
OSStatus SecTrustCopyAnchorCertificates (
    CFArrayRef *anchors
);
To
OSStatus SecTrustCopyAnchorCertificates (
    CFArrayRef  _Nullable * _Nonnull anchors
);

Declaration
From
OSStatus SecTrustCopyCustomAnchorCertificates (
    SecTrustRef trust,
    CFArrayRef *anchors
);
To
OSStatus SecTrustCopyCustomAnchorCertificates (
    SecTrustRef _Nonnull trust,
    CFArrayRef  _Nullable * _Nonnull anchors
);

Declaration
From
CFDataRef SecTrustCopyExceptions (
    SecTrustRef trust
);
To
CFDataRef _Nonnull SecTrustCopyExceptions (
    SecTrustRef _Nonnull trust
);

Declaration
From
OSStatus SecTrustCopyPolicies (
    SecTrustRef trust,
    CFArrayRef *policies
);
To
OSStatus SecTrustCopyPolicies (
    SecTrustRef _Nonnull trust,
    CFArrayRef  _Nullable * _Nonnull policies
);

Declaration
From
CFArrayRef SecTrustCopyProperties (
    SecTrustRef trust
);
To
CFArrayRef _Nullable SecTrustCopyProperties (
    SecTrustRef _Nonnull trust
);

Declaration
From
SecKeyRef SecTrustCopyPublicKey (
    SecTrustRef trust
);
To
SecKeyRef _Nullable SecTrustCopyPublicKey (
    SecTrustRef _Nonnull trust
);

Declaration
From
CFDictionaryRef SecTrustCopyResult (
    SecTrustRef trust
);
To
CFDictionaryRef _Nullable SecTrustCopyResult (
    SecTrustRef _Nonnull trust
);

Declaration
From
OSStatus SecTrustCreateWithCertificates (
    CFTypeRef certificates,
    CFTypeRef policies,
    SecTrustRef *trust
);
To
OSStatus SecTrustCreateWithCertificates (
    CFTypeRef _Nonnull certificates,
    CFTypeRef _Nullable policies,
    SecTrustRef  _Nullable * _Nonnull trust
);

Declaration
From
OSStatus SecTrustEvaluate (
    SecTrustRef trust,
    SecTrustResultType *result
);
To
OSStatus SecTrustEvaluate (
    SecTrustRef _Nonnull trust,
    SecTrustResultType * _Nullable result
);

Declaration
From
OSStatus SecTrustEvaluateAsync (
    SecTrustRef trust,
    dispatch_queue_t queue,
    SecTrustCallback result
);
To
OSStatus SecTrustEvaluateAsync (
    SecTrustRef _Nonnull trust,
    dispatch_queue_t _Nullable queue,
    SecTrustCallback _Nonnull result
);

Declaration
From
SecCertificateRef SecTrustGetCertificateAtIndex (
    SecTrustRef trust,
    CFIndex ix
);
To
SecCertificateRef _Nullable SecTrustGetCertificateAtIndex (
    SecTrustRef _Nonnull trust,
    CFIndex ix
);

Declaration
From
CFIndex SecTrustGetCertificateCount (
    SecTrustRef trust
);
To
CFIndex SecTrustGetCertificateCount (
    SecTrustRef _Nonnull trust
);

Declaration
From
OSStatus SecTrustGetCssmResult (
    SecTrustRef trust,
    CSSM_TP_VERIFY_CONTEXT_RESULT_PTR *result
);
To
OSStatus SecTrustGetCssmResult (
    SecTrustRef _Nonnull trust,
    CSSM_TP_VERIFY_CONTEXT_RESULT_PTR  _Nullable * _Nonnull result
);

Declaration
From
OSStatus SecTrustGetCssmResultCode (
    SecTrustRef trust,
    OSStatus *resultCode
);
To
OSStatus SecTrustGetCssmResultCode (
    SecTrustRef _Nonnull trust,
    OSStatus * _Nonnull resultCode
);

Declaration
From
OSStatus SecTrustGetNetworkFetchAllowed (
    SecTrustRef trust,
    Boolean *allowFetch
);
To
OSStatus SecTrustGetNetworkFetchAllowed (
    SecTrustRef _Nonnull trust,
    Boolean * _Nonnull allowFetch
);

Declaration
From
OSStatus SecTrustGetResult (
    SecTrustRef trustRef,
    SecTrustResultType *result,
    CFArrayRef *certChain,
    CSSM_TP_APPLE_EVIDENCE_INFO **statusChain
);
To
OSStatus SecTrustGetResult (
    SecTrustRef _Nonnull trustRef,
    SecTrustResultType * _Nullable result,
    CFArrayRef  _Nullable * _Nonnull certChain,
    CSSM_TP_APPLE_EVIDENCE_INFO * _Nullable * _Nonnull statusChain
);

Declaration
From
OSStatus SecTrustGetTPHandle (
    SecTrustRef trust,
    CSSM_TP_HANDLE *handle
);
To
OSStatus SecTrustGetTPHandle (
    SecTrustRef _Nonnull trust,
    CSSM_TP_HANDLE * _Nonnull handle
);

Declaration
From
OSStatus SecTrustGetTrustResult (
    SecTrustRef trust,
    SecTrustResultType *result
);
To
OSStatus SecTrustGetTrustResult (
    SecTrustRef _Nonnull trust,
    SecTrustResultType * _Nonnull result
);

Declaration
From
CFAbsoluteTime SecTrustGetVerifyTime (
    SecTrustRef trust
);
To
CFAbsoluteTime SecTrustGetVerifyTime (
    SecTrustRef _Nonnull trust
);

Declaration
From
OSStatus SecTrustSetAnchorCertificates (
    SecTrustRef trust,
    CFArrayRef anchorCertificates
);
To
OSStatus SecTrustSetAnchorCertificates (
    SecTrustRef _Nonnull trust,
    CFArrayRef _Nonnull anchorCertificates
);

Declaration
From
OSStatus SecTrustSetAnchorCertificatesOnly (
    SecTrustRef trust,
    Boolean anchorCertificatesOnly
);
To
OSStatus SecTrustSetAnchorCertificatesOnly (
    SecTrustRef _Nonnull trust,
    Boolean anchorCertificatesOnly
);

Declaration
From
bool SecTrustSetExceptions (
    SecTrustRef trust,
    CFDataRef exceptions
);
To
bool SecTrustSetExceptions (
    SecTrustRef _Nonnull trust,
    CFDataRef _Nonnull exceptions
);

Declaration
From
OSStatus SecTrustSetKeychains (
    SecTrustRef trust,
    CFTypeRef keychainOrArray
);
To
OSStatus SecTrustSetKeychains (
    SecTrustRef _Nonnull trust,
    CFTypeRef _Nullable keychainOrArray
);

Declaration
From
OSStatus SecTrustSetNetworkFetchAllowed (
    SecTrustRef trust,
    Boolean allowFetch
);
To
OSStatus SecTrustSetNetworkFetchAllowed (
    SecTrustRef _Nonnull trust,
    Boolean allowFetch
);

Declaration
From
OSStatus SecTrustSetOCSPResponse (
    SecTrustRef trust,
    CFTypeRef responseData
);
To
OSStatus SecTrustSetOCSPResponse (
    SecTrustRef _Nonnull trust,
    CFTypeRef _Nullable responseData
);

Declaration
From
OSStatus SecTrustSetOptions (
    SecTrustRef trustRef,
    SecTrustOptionFlags options
);
To
OSStatus SecTrustSetOptions (
    SecTrustRef _Nonnull trustRef,
    SecTrustOptionFlags options
);

Declaration
From
OSStatus SecTrustSetParameters (
    SecTrustRef trustRef,
    CSSM_TP_ACTION action,
    CFDataRef actionData
);
To
OSStatus SecTrustSetParameters (
    SecTrustRef _Nonnull trustRef,
    CSSM_TP_ACTION action,
    CFDataRef _Nonnull actionData
);

Declaration
From
OSStatus SecTrustSetPolicies (
    SecTrustRef trust,
    CFTypeRef policies
);
To
OSStatus SecTrustSetPolicies (
    SecTrustRef _Nonnull trust,
    CFTypeRef _Nonnull policies
);

Declaration
From
OSStatus SecTrustSetVerifyDate (
    SecTrustRef trust,
    CFDateRef verifyDate
);
To
OSStatus SecTrustSetVerifyDate (
    SecTrustRef _Nonnull trust,
    CFDateRef _Nonnull verifyDate
);

SecTrustedApplication.h

Declaration
From
OSStatus SecTrustedApplicationCopyData (
    SecTrustedApplicationRef appRef,
    CFDataRef *data
);
To
OSStatus SecTrustedApplicationCopyData (
    SecTrustedApplicationRef _Nonnull appRef,
    CFDataRef  _Nullable * _Nonnull data
);

Declaration
From
OSStatus SecTrustedApplicationCreateFromPath (
    const char *path,
    SecTrustedApplicationRef *app
);
To
OSStatus SecTrustedApplicationCreateFromPath (
    const char * _Nullable path,
    SecTrustedApplicationRef  _Nullable * _Nonnull app
);

Declaration
From
OSStatus SecTrustedApplicationSetData (
    SecTrustedApplicationRef appRef,
    CFDataRef data
);
To
OSStatus SecTrustedApplicationSetData (
    SecTrustedApplicationRef _Nonnull appRef,
    CFDataRef _Nonnull data
);

SecTrustSettings.h

Declaration
From
OSStatus SecTrustSettingsCopyCertificates (
    SecTrustSettingsDomain domain,
    CFArrayRef *certArray
);
To
OSStatus SecTrustSettingsCopyCertificates (
    SecTrustSettingsDomain domain,
    CFArrayRef  _Nullable * _Nullable certArray
);

Declaration
From
OSStatus SecTrustSettingsCopyModificationDate (
    SecCertificateRef certRef,
    SecTrustSettingsDomain domain,
    CFDateRef *modificationDate
);
To
OSStatus SecTrustSettingsCopyModificationDate (
    SecCertificateRef _Nonnull certRef,
    SecTrustSettingsDomain domain,
    CFDateRef  _Nullable * _Nonnull modificationDate
);

Declaration
From
OSStatus SecTrustSettingsCopyTrustSettings (
    SecCertificateRef certRef,
    SecTrustSettingsDomain domain,
    CFArrayRef *trustSettings
);
To
OSStatus SecTrustSettingsCopyTrustSettings (
    SecCertificateRef _Nonnull certRef,
    SecTrustSettingsDomain domain,
    CFArrayRef  _Nullable * _Nonnull trustSettings
);

Declaration
From
OSStatus SecTrustSettingsCreateExternalRepresentation (
    SecTrustSettingsDomain domain,
    CFDataRef *trustSettings
);
To
OSStatus SecTrustSettingsCreateExternalRepresentation (
    SecTrustSettingsDomain domain,
    CFDataRef  _Nullable * _Nonnull trustSettings
);

Declaration
From
OSStatus SecTrustSettingsImportExternalRepresentation (
    SecTrustSettingsDomain domain,
    CFDataRef trustSettings
);
To
OSStatus SecTrustSettingsImportExternalRepresentation (
    SecTrustSettingsDomain domain,
    CFDataRef _Nonnull trustSettings
);

Declaration
From
OSStatus SecTrustSettingsRemoveTrustSettings (
    SecCertificateRef certRef,
    SecTrustSettingsDomain domain
);
To
OSStatus SecTrustSettingsRemoveTrustSettings (
    SecCertificateRef _Nonnull certRef,
    SecTrustSettingsDomain domain
);

Declaration
From
OSStatus SecTrustSettingsSetTrustSettings (
    SecCertificateRef certRef,
    SecTrustSettingsDomain domain,
    CFTypeRef trustSettingsDictOrArray
);
To
OSStatus SecTrustSettingsSetTrustSettings (
    SecCertificateRef _Nonnull certRef,
    SecTrustSettingsDomain domain,
    CFTypeRef _Nullable trustSettingsDictOrArray
);

SecureTransport.h

Added kSSLSessionStrengthPolicyATSv1
Added kSSLSessionStrengthPolicyDefault
Added SSLSessionStrengthPolicy
Added SSLSetSessionStrengthPolicy()
Declaration
From
OSStatus SSLAddDistinguishedName (
    SSLContextRef context,
    const void *derDN,
    size_t derDNLen
);
To
OSStatus SSLAddDistinguishedName (
    SSLContextRef _Nonnull context,
    const void * _Nullable derDN,
    size_t derDNLen
);

Modified SSLClose()
Declaration
From
OSStatus SSLClose (
    SSLContextRef context
);
To
OSStatus SSLClose (
    SSLContextRef _Nonnull context
);

Declaration
From
OSStatus SSLCopyCertificateAuthorities (
    SSLContextRef context,
    CFArrayRef *certificates
);
To
OSStatus SSLCopyCertificateAuthorities (
    SSLContextRef _Nonnull context,
    CFArrayRef  _Nullable * _Nonnull certificates
);

Declaration
From
OSStatus SSLCopyDistinguishedNames (
    SSLContextRef context,
    CFArrayRef *names
);
To
OSStatus SSLCopyDistinguishedNames (
    SSLContextRef _Nonnull context,
    CFArrayRef  _Nullable * _Nonnull names
);

Declaration
From
OSStatus SSLCopyPeerCertificates (
    SSLContextRef context,
    CFArrayRef *certs
);
To
OSStatus SSLCopyPeerCertificates (
    SSLContextRef _Nonnull context,
    CFArrayRef  _Nullable * _Nonnull certs
);

Declaration
From
OSStatus SSLCopyPeerTrust (
    SSLContextRef context,
    SecTrustRef *trust
);
To
OSStatus SSLCopyPeerTrust (
    SSLContextRef _Nonnull context,
    SecTrustRef  _Nullable * _Nonnull trust
);

Declaration
From
OSStatus SSLCopyTrustedRoots (
    SSLContextRef context,
    CFArrayRef *trustedRoots
);
To
OSStatus SSLCopyTrustedRoots (
    SSLContextRef _Nonnull context,
    CFArrayRef  _Nullable * _Nonnull trustedRoots
);

Declaration
From
SSLContextRef SSLCreateContext (
    CFAllocatorRef alloc,
    SSLProtocolSide protocolSide,
    SSLConnectionType connectionType
);
To
SSLContextRef _Nullable SSLCreateContext (
    CFAllocatorRef _Nullable alloc,
    SSLProtocolSide protocolSide,
    SSLConnectionType connectionType
);

Declaration
From
OSStatus SSLDisposeContext (
    SSLContextRef context
);
To
OSStatus SSLDisposeContext (
    SSLContextRef _Nonnull context
);

Declaration
From
OSStatus SSLGetAllowsAnyRoot (
    SSLContextRef context,
    Boolean *anyRoot
);
To
OSStatus SSLGetAllowsAnyRoot (
    SSLContextRef _Nonnull context,
    Boolean * _Nonnull anyRoot
);

Declaration
From
OSStatus SSLGetAllowsExpiredCerts (
    SSLContextRef context,
    Boolean *allowsExpired
);
To
OSStatus SSLGetAllowsExpiredCerts (
    SSLContextRef _Nonnull context,
    Boolean * _Nonnull allowsExpired
);

Declaration
From
OSStatus SSLGetAllowsExpiredRoots (
    SSLContextRef context,
    Boolean *allowsExpired
);
To
OSStatus SSLGetAllowsExpiredRoots (
    SSLContextRef _Nonnull context,
    Boolean * _Nonnull allowsExpired
);

Declaration
From
OSStatus SSLGetBufferedReadSize (
    SSLContextRef context,
    size_t *bufSize
);
To
OSStatus SSLGetBufferedReadSize (
    SSLContextRef _Nonnull context,
    size_t * _Nonnull bufSize
);

Declaration
From
OSStatus SSLGetClientCertificateState (
    SSLContextRef context,
    SSLClientCertificateState *clientState
);
To
OSStatus SSLGetClientCertificateState (
    SSLContextRef _Nonnull context,
    SSLClientCertificateState * _Nonnull clientState
);

Declaration
From
OSStatus SSLGetConnection (
    SSLContextRef context,
    SSLConnectionRef *connection
);
To
OSStatus SSLGetConnection (
    SSLContextRef _Nonnull context,
    SSLConnectionRef  _Nullable * _Nonnull connection
);

Declaration
From
OSStatus SSLGetDatagramWriteSize (
    SSLContextRef dtlsContext,
    size_t *bufSize
);
To
OSStatus SSLGetDatagramWriteSize (
    SSLContextRef _Nonnull dtlsContext,
    size_t * _Nonnull bufSize
);

Declaration
From
OSStatus SSLGetDiffieHellmanParams (
    SSLContextRef context,
    const void **dhParams,
    size_t *dhParamsLen
);
To
OSStatus SSLGetDiffieHellmanParams (
    SSLContextRef _Nonnull context,
    const void * _Nullable * _Nonnull dhParams,
    size_t * _Nonnull dhParamsLen
);

Declaration
From
OSStatus SSLGetEnableCertVerify (
    SSLContextRef context,
    Boolean *enableVerify
);
To
OSStatus SSLGetEnableCertVerify (
    SSLContextRef _Nonnull context,
    Boolean * _Nonnull enableVerify
);

Declaration
From
OSStatus SSLGetEnabledCiphers (
    SSLContextRef context,
    SSLCipherSuite *ciphers,
    size_t *numCiphers
);
To
OSStatus SSLGetEnabledCiphers (
    SSLContextRef _Nonnull context,
    SSLCipherSuite * _Nonnull ciphers,
    size_t * _Nonnull numCiphers
);

Declaration
From
OSStatus SSLGetMaxDatagramRecordSize (
    SSLContextRef dtlsContext,
    size_t *maxSize
);
To
OSStatus SSLGetMaxDatagramRecordSize (
    SSLContextRef _Nonnull dtlsContext,
    size_t * _Nonnull maxSize
);

Declaration
From
OSStatus SSLGetNegotiatedCipher (
    SSLContextRef context,
    SSLCipherSuite *cipherSuite
);
To
OSStatus SSLGetNegotiatedCipher (
    SSLContextRef _Nonnull context,
    SSLCipherSuite * _Nonnull cipherSuite
);

Declaration
From
OSStatus SSLGetNegotiatedProtocolVersion (
    SSLContextRef context,
    SSLProtocol *protocol
);
To
OSStatus SSLGetNegotiatedProtocolVersion (
    SSLContextRef _Nonnull context,
    SSLProtocol * _Nonnull protocol
);

Declaration
From
OSStatus SSLGetNumberEnabledCiphers (
    SSLContextRef context,
    size_t *numCiphers
);
To
OSStatus SSLGetNumberEnabledCiphers (
    SSLContextRef _Nonnull context,
    size_t * _Nonnull numCiphers
);

Declaration
From
OSStatus SSLGetNumberSupportedCiphers (
    SSLContextRef context,
    size_t *numCiphers
);
To
OSStatus SSLGetNumberSupportedCiphers (
    SSLContextRef _Nonnull context,
    size_t * _Nonnull numCiphers
);

Declaration
From
OSStatus SSLGetPeerDomainName (
    SSLContextRef context,
    char *peerName,
    size_t *peerNameLen
);
To
OSStatus SSLGetPeerDomainName (
    SSLContextRef _Nonnull context,
    char * _Nonnull peerName,
    size_t * _Nonnull peerNameLen
);

Declaration
From
OSStatus SSLGetPeerDomainNameLength (
    SSLContextRef context,
    size_t *peerNameLen
);
To
OSStatus SSLGetPeerDomainNameLength (
    SSLContextRef _Nonnull context,
    size_t * _Nonnull peerNameLen
);

Declaration
From
OSStatus SSLGetPeerID (
    SSLContextRef context,
    const void **peerID,
    size_t *peerIDLen
);
To
OSStatus SSLGetPeerID (
    SSLContextRef _Nonnull context,
    const void * _Nullable * _Nonnull peerID,
    size_t * _Nonnull peerIDLen
);

Declaration
From
OSStatus SSLGetProtocolVersion (
    SSLContextRef context,
    SSLProtocol *protocol
);
To
OSStatus SSLGetProtocolVersion (
    SSLContextRef _Nonnull context,
    SSLProtocol * _Nonnull protocol
);

Declaration
From
OSStatus SSLGetProtocolVersionEnabled (
    SSLContextRef context,
    SSLProtocol protocol,
    Boolean *enable
);
To
OSStatus SSLGetProtocolVersionEnabled (
    SSLContextRef _Nonnull context,
    SSLProtocol protocol,
    Boolean * _Nonnull enable
);

Declaration
From
OSStatus SSLGetProtocolVersionMax (
    SSLContextRef context,
    SSLProtocol *maxVersion
);
To
OSStatus SSLGetProtocolVersionMax (
    SSLContextRef _Nonnull context,
    SSLProtocol * _Nonnull maxVersion
);

Declaration
From
OSStatus SSLGetProtocolVersionMin (
    SSLContextRef context,
    SSLProtocol *minVersion
);
To
OSStatus SSLGetProtocolVersionMin (
    SSLContextRef _Nonnull context,
    SSLProtocol * _Nonnull minVersion
);

Declaration
From
OSStatus SSLGetRsaBlinding (
    SSLContextRef context,
    Boolean *blinding
);
To
OSStatus SSLGetRsaBlinding (
    SSLContextRef _Nonnull context,
    Boolean * _Nonnull blinding
);

Declaration
From
OSStatus SSLGetSessionOption (
    SSLContextRef context,
    SSLSessionOption option,
    Boolean *value
);
To
OSStatus SSLGetSessionOption (
    SSLContextRef _Nonnull context,
    SSLSessionOption option,
    Boolean * _Nonnull value
);

Declaration
From
OSStatus SSLGetSessionState (
    SSLContextRef context,
    SSLSessionState *state
);
To
OSStatus SSLGetSessionState (
    SSLContextRef _Nonnull context,
    SSLSessionState * _Nonnull state
);

Declaration
From
OSStatus SSLGetSupportedCiphers (
    SSLContextRef context,
    SSLCipherSuite *ciphers,
    size_t *numCiphers
);
To
OSStatus SSLGetSupportedCiphers (
    SSLContextRef _Nonnull context,
    SSLCipherSuite * _Nonnull ciphers,
    size_t * _Nonnull numCiphers
);

Declaration
From
OSStatus SSLHandshake (
    SSLContextRef context
);
To
OSStatus SSLHandshake (
    SSLContextRef _Nonnull context
);

Declaration
From
OSStatus SSLNewContext (
    Boolean isServer,
    SSLContextRef *contextPtr
);
To
OSStatus SSLNewContext (
    Boolean isServer,
    SSLContextRef  _Nullable * _Nonnull contextPtr
);

Modified SSLRead()
Declaration
From
OSStatus SSLRead (
    SSLContextRef context,
    void *data,
    size_t dataLength,
    size_t *processed
);
To
OSStatus SSLRead (
    SSLContextRef _Nonnull context,
    void * _Nonnull data,
    size_t dataLength,
    size_t * _Nonnull processed
);

Declaration
From
OSStatus SSLSetAllowsAnyRoot (
    SSLContextRef context,
    Boolean anyRoot
);
To
OSStatus SSLSetAllowsAnyRoot (
    SSLContextRef _Nonnull context,
    Boolean anyRoot
);

Declaration
From
OSStatus SSLSetAllowsExpiredCerts (
    SSLContextRef context,
    Boolean allowsExpired
);
To
OSStatus SSLSetAllowsExpiredCerts (
    SSLContextRef _Nonnull context,
    Boolean allowsExpired
);

Declaration
From
OSStatus SSLSetAllowsExpiredRoots (
    SSLContextRef context,
    Boolean allowsExpired
);
To
OSStatus SSLSetAllowsExpiredRoots (
    SSLContextRef _Nonnull context,
    Boolean allowsExpired
);

Declaration
From
OSStatus SSLSetCertificate (
    SSLContextRef context,
    CFArrayRef certRefs
);
To
OSStatus SSLSetCertificate (
    SSLContextRef _Nonnull context,
    CFArrayRef _Nonnull certRefs
);

Declaration
From
OSStatus SSLSetCertificateAuthorities (
    SSLContextRef context,
    CFTypeRef certificateOrArray,
    Boolean replaceExisting
);
To
OSStatus SSLSetCertificateAuthorities (
    SSLContextRef _Nonnull context,
    CFTypeRef _Nonnull certificateOrArray,
    Boolean replaceExisting
);

Declaration
From
OSStatus SSLSetClientSideAuthenticate (
    SSLContextRef context,
    SSLAuthenticate auth
);
To
OSStatus SSLSetClientSideAuthenticate (
    SSLContextRef _Nonnull context,
    SSLAuthenticate auth
);

Declaration
From
OSStatus SSLSetConnection (
    SSLContextRef context,
    SSLConnectionRef connection
);
To
OSStatus SSLSetConnection (
    SSLContextRef _Nonnull context,
    SSLConnectionRef _Nullable connection
);

Declaration
From
OSStatus SSLSetDatagramHelloCookie (
    SSLContextRef dtlsContext,
    const void *cookie,
    size_t cookieLen
);
To
OSStatus SSLSetDatagramHelloCookie (
    SSLContextRef _Nonnull dtlsContext,
    const void * _Nullable cookie,
    size_t cookieLen
);

Declaration
From
OSStatus SSLSetDiffieHellmanParams (
    SSLContextRef context,
    const void *dhParams,
    size_t dhParamsLen
);
To
OSStatus SSLSetDiffieHellmanParams (
    SSLContextRef _Nonnull context,
    const void * _Nullable dhParams,
    size_t dhParamsLen
);

Declaration
From
OSStatus SSLSetEnableCertVerify (
    SSLContextRef context,
    Boolean enableVerify
);
To
OSStatus SSLSetEnableCertVerify (
    SSLContextRef _Nonnull context,
    Boolean enableVerify
);

Declaration
From
OSStatus SSLSetEnabledCiphers (
    SSLContextRef context,
    const SSLCipherSuite *ciphers,
    size_t numCiphers
);
To
OSStatus SSLSetEnabledCiphers (
    SSLContextRef _Nonnull context,
    const SSLCipherSuite * _Nonnull ciphers,
    size_t numCiphers
);

DeclarationDeprecation
From
OSStatus SSLSetEncryptionCertificate (
    SSLContextRef context,
    CFArrayRef certRefs
);
--
To
OSStatus SSLSetEncryptionCertificate (
    SSLContextRef _Nonnull context,
    CFArrayRef _Nonnull certRefs
);
OS X 10.11

Declaration
From
OSStatus SSLSetIOFuncs (
    SSLContextRef context,
    SSLReadFunc readFunc,
    SSLWriteFunc writeFunc
);
To
OSStatus SSLSetIOFuncs (
    SSLContextRef _Nonnull context,
    SSLReadFunc _Nonnull readFunc,
    SSLWriteFunc _Nonnull writeFunc
);

Declaration
From
OSStatus SSLSetMaxDatagramRecordSize (
    SSLContextRef dtlsContext,
    size_t maxSize
);
To
OSStatus SSLSetMaxDatagramRecordSize (
    SSLContextRef _Nonnull dtlsContext,
    size_t maxSize
);

Declaration
From
OSStatus SSLSetPeerDomainName (
    SSLContextRef context,
    const char *peerName,
    size_t peerNameLen
);
To
OSStatus SSLSetPeerDomainName (
    SSLContextRef _Nonnull context,
    const char * _Nullable peerName,
    size_t peerNameLen
);

Declaration
From
OSStatus SSLSetPeerID (
    SSLContextRef context,
    const void *peerID,
    size_t peerIDLen
);
To
OSStatus SSLSetPeerID (
    SSLContextRef _Nonnull context,
    const void * _Nullable peerID,
    size_t peerIDLen
);

Declaration
From
OSStatus SSLSetProtocolVersion (
    SSLContextRef context,
    SSLProtocol version
);
To
OSStatus SSLSetProtocolVersion (
    SSLContextRef _Nonnull context,
    SSLProtocol version
);

Declaration
From
OSStatus SSLSetProtocolVersionEnabled (
    SSLContextRef context,
    SSLProtocol protocol,
    Boolean enable
);
To
OSStatus SSLSetProtocolVersionEnabled (
    SSLContextRef _Nonnull context,
    SSLProtocol protocol,
    Boolean enable
);

Declaration
From
OSStatus SSLSetProtocolVersionMax (
    SSLContextRef context,
    SSLProtocol maxVersion
);
To
OSStatus SSLSetProtocolVersionMax (
    SSLContextRef _Nonnull context,
    SSLProtocol maxVersion
);

Declaration
From
OSStatus SSLSetProtocolVersionMin (
    SSLContextRef context,
    SSLProtocol minVersion
);
To
OSStatus SSLSetProtocolVersionMin (
    SSLContextRef _Nonnull context,
    SSLProtocol minVersion
);

Declaration
From
OSStatus SSLSetRsaBlinding (
    SSLContextRef context,
    Boolean blinding
);
To
OSStatus SSLSetRsaBlinding (
    SSLContextRef _Nonnull context,
    Boolean blinding
);

Declaration
From
OSStatus SSLSetSessionOption (
    SSLContextRef context,
    SSLSessionOption option,
    Boolean value
);
To
OSStatus SSLSetSessionOption (
    SSLContextRef _Nonnull context,
    SSLSessionOption option,
    Boolean value
);

Declaration
From
OSStatus SSLSetTrustedRoots (
    SSLContextRef context,
    CFArrayRef trustedRoots,
    Boolean replaceExisting
);
To
OSStatus SSLSetTrustedRoots (
    SSLContextRef _Nonnull context,
    CFArrayRef _Nonnull trustedRoots,
    Boolean replaceExisting
);

Modified SSLWrite()
Declaration
From
OSStatus SSLWrite (
    SSLContextRef context,
    const void *data,
    size_t dataLength,
    size_t *processed
);
To
OSStatus SSLWrite (
    SSLContextRef _Nonnull context,
    const void * _Nullable data,
    size_t dataLength,
    size_t * _Nonnull processed
);