Documentation Archive Developer
Search

Security Changes for Swift

Security

Removed SecAccessControlCreateFlags.init(_: CFIndex)
Removed errSecAllocate
Removed errSecAuthFailed
Removed errSecDecode
Removed errSecDuplicateItem
Removed errSecInteractionNotAllowed
Removed errSecItemNotFound
Removed errSecNotAvailable
Removed errSecParam
Removed errSecSuccess
Removed errSecUnimplemented
Removed kSecPaddingNone
Removed kSecPaddingOAEP
Removed kSecPaddingPKCS1
Removed kSecPaddingPKCS1MD2
Removed kSecPaddingPKCS1MD5
Removed kSecPaddingPKCS1SHA1
Removed kSecPaddingPKCS1SHA224
Removed kSecPaddingPKCS1SHA256
Removed kSecPaddingPKCS1SHA384
Removed kSecPaddingPKCS1SHA512
Removed kSecPaddingSigRaw
Removed SecPadding
DeclarationProtocols
From
struct SecAccessControlCreateFlags : RawOptionSetType {
    init(_ rawValue: CFIndex)
    init(rawValue rawValue: CFIndex)
    static var UserPresence: SecAccessControlCreateFlags { get }
}
RawOptionSetType
To
struct SecAccessControlCreateFlags : OptionSetType {
    init(rawValue rawValue: CFIndex)
    static var UserPresence: SecAccessControlCreateFlags { get }
    static var TouchIDAny: SecAccessControlCreateFlags { get }
    static var TouchIDCurrentSet: SecAccessControlCreateFlags { get }
    static var DevicePasscode: SecAccessControlCreateFlags { get }
    static var Or: SecAccessControlCreateFlags { get }
    static var And: SecAccessControlCreateFlags { get }
    static var PrivateKeyUsage: SecAccessControlCreateFlags { get }
    static var ApplicationPassword: SecAccessControlCreateFlags { get }
}
OptionSetType

Declaration
From
var errSecAllocate: Int { get }
To
var errSecAllocate: OSStatus { get }

Declaration
From
var errSecAuthFailed: Int { get }
To
var errSecAuthFailed: OSStatus { get }

Modified errSecBadReq
Declaration
From
var errSecBadReq: Int { get }
To
var errSecBadReq: OSStatus { get }

Modified errSecDecode
Declaration
From
var errSecDecode: Int { get }
To
var errSecDecode: OSStatus { get }

Declaration
From
var errSecDuplicateItem: Int { get }
To
var errSecDuplicateItem: OSStatus { get }

Declaration
From
var errSecInteractionNotAllowed: Int { get }
To
var errSecInteractionNotAllowed: OSStatus { get }

Declaration
From
var errSecInternalComponent: Int { get }
To
var errSecInternalComponent: OSStatus { get }

Modified errSecIO
Declaration
From
var errSecIO: Int { get }
To
var errSecIO: OSStatus { get }

Declaration
From
var errSecItemNotFound: Int { get }
To
var errSecItemNotFound: OSStatus { get }

Declaration
From
var errSecNotAvailable: Int { get }
To
var errSecNotAvailable: OSStatus { get }

Modified errSecOpWr
Declaration
From
var errSecOpWr: Int { get }
To
var errSecOpWr: OSStatus { get }

Modified errSecParam
Declaration
From
var errSecParam: Int { get }
To
var errSecParam: OSStatus { get }

Modified errSecSuccess
Declaration
From
var errSecSuccess: Int { get }
To
var errSecSuccess: OSStatus { get }

Declaration
From
var errSecUnimplemented: Int { get }
To
var errSecUnimplemented: OSStatus { get }

Declaration
From
var errSecUserCanceled: Int { get }
To
var errSecUserCanceled: OSStatus { get }

Declaration
From
var kSecAttrAccessControl: CFStringRef
To
let kSecAttrAccessControl: CFString

Declaration
From
var kSecAttrAccessGroup: CFStringRef
To
let kSecAttrAccessGroup: CFString

Declaration
From
var kSecAttrAccessible: CFStringRef
To
let kSecAttrAccessible: CFString

Declaration
From
var kSecAttrAccessibleAfterFirstUnlock: CFStringRef
To
let kSecAttrAccessibleAfterFirstUnlock: CFString

Declaration
From
var kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly: CFStringRef
To
let kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly: CFString

Declaration
From
var kSecAttrAccessibleAlways: CFStringRef
To
let kSecAttrAccessibleAlways: CFString

Declaration
From
var kSecAttrAccessibleAlwaysThisDeviceOnly: CFStringRef
To
let kSecAttrAccessibleAlwaysThisDeviceOnly: CFString

Declaration
From
var kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly: CFStringRef
To
let kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly: CFString

Declaration
From
var kSecAttrAccessibleWhenUnlocked: CFStringRef
To
let kSecAttrAccessibleWhenUnlocked: CFString

Declaration
From
var kSecAttrAccessibleWhenUnlockedThisDeviceOnly: CFStringRef
To
let kSecAttrAccessibleWhenUnlockedThisDeviceOnly: CFString

Declaration
From
var kSecAttrAccount: CFStringRef
To
let kSecAttrAccount: CFString

Declaration
From
var kSecAttrApplicationLabel: CFStringRef
To
let kSecAttrApplicationLabel: CFString

Declaration
From
var kSecAttrApplicationTag: CFStringRef
To
let kSecAttrApplicationTag: CFString

Declaration
From
var kSecAttrAuthenticationType: CFStringRef
To
let kSecAttrAuthenticationType: CFString

Declaration
From
var kSecAttrAuthenticationTypeDefault: CFStringRef
To
let kSecAttrAuthenticationTypeDefault: CFString

Declaration
From
var kSecAttrAuthenticationTypeDPA: CFStringRef
To
let kSecAttrAuthenticationTypeDPA: CFString

Declaration
From
var kSecAttrAuthenticationTypeHTMLForm: CFStringRef
To
let kSecAttrAuthenticationTypeHTMLForm: CFString

Declaration
From
var kSecAttrAuthenticationTypeHTTPBasic: CFStringRef
To
let kSecAttrAuthenticationTypeHTTPBasic: CFString

Declaration
From
var kSecAttrAuthenticationTypeHTTPDigest: CFStringRef
To
let kSecAttrAuthenticationTypeHTTPDigest: CFString

Declaration
From
var kSecAttrAuthenticationTypeMSN: CFStringRef
To
let kSecAttrAuthenticationTypeMSN: CFString

Declaration
From
var kSecAttrAuthenticationTypeNTLM: CFStringRef
To
let kSecAttrAuthenticationTypeNTLM: CFString

Declaration
From
var kSecAttrAuthenticationTypeRPA: CFStringRef
To
let kSecAttrAuthenticationTypeRPA: CFString

Declaration
From
var kSecAttrCanDecrypt: CFStringRef
To
let kSecAttrCanDecrypt: CFString

Declaration
From
var kSecAttrCanDerive: CFStringRef
To
let kSecAttrCanDerive: CFString

Declaration
From
var kSecAttrCanEncrypt: CFStringRef
To
let kSecAttrCanEncrypt: CFString

Declaration
From
var kSecAttrCanSign: CFStringRef
To
let kSecAttrCanSign: CFString

Declaration
From
var kSecAttrCanUnwrap: CFStringRef
To
let kSecAttrCanUnwrap: CFString

Declaration
From
var kSecAttrCanVerify: CFStringRef
To
let kSecAttrCanVerify: CFString

Declaration
From
var kSecAttrCanWrap: CFStringRef
To
let kSecAttrCanWrap: CFString

Declaration
From
var kSecAttrCertificateEncoding: CFStringRef
To
let kSecAttrCertificateEncoding: CFString

Declaration
From
var kSecAttrCertificateType: CFStringRef
To
let kSecAttrCertificateType: CFString

Declaration
From
var kSecAttrComment: CFStringRef
To
let kSecAttrComment: CFString

Declaration
From
var kSecAttrCreationDate: CFStringRef
To
let kSecAttrCreationDate: CFString

Declaration
From
var kSecAttrCreator: CFStringRef
To
let kSecAttrCreator: CFString

Declaration
From
var kSecAttrDescription: CFStringRef
To
let kSecAttrDescription: CFString

Declaration
From
var kSecAttrEffectiveKeySize: CFStringRef
To
let kSecAttrEffectiveKeySize: CFString

Declaration
From
var kSecAttrGeneric: CFStringRef
To
let kSecAttrGeneric: CFString

Declaration
From
var kSecAttrIsInvisible: CFStringRef
To
let kSecAttrIsInvisible: CFString

Declaration
From
var kSecAttrIsNegative: CFStringRef
To
let kSecAttrIsNegative: CFString

Declaration
From
var kSecAttrIsPermanent: CFStringRef
To
let kSecAttrIsPermanent: CFString

Declaration
From
var kSecAttrIssuer: CFStringRef
To
let kSecAttrIssuer: CFString

Declaration
From
var kSecAttrKeyClass: CFStringRef
To
let kSecAttrKeyClass: CFString

Declaration
From
var kSecAttrKeyClassPrivate: CFStringRef
To
let kSecAttrKeyClassPrivate: CFString

Declaration
From
var kSecAttrKeyClassPublic: CFStringRef
To
let kSecAttrKeyClassPublic: CFString

Declaration
From
var kSecAttrKeyClassSymmetric: CFStringRef
To
let kSecAttrKeyClassSymmetric: CFString

Declaration
From
var kSecAttrKeySizeInBits: CFStringRef
To
let kSecAttrKeySizeInBits: CFString

Declaration
From
var kSecAttrKeyType: CFStringRef
To
let kSecAttrKeyType: CFString

Declaration
From
var kSecAttrKeyTypeEC: CFStringRef
To
let kSecAttrKeyTypeEC: CFString

Declaration
From
var kSecAttrKeyTypeRSA: CFStringRef
To
let kSecAttrKeyTypeRSA: CFString

Modified kSecAttrLabel
Declaration
From
var kSecAttrLabel: CFStringRef
To
let kSecAttrLabel: CFString

Declaration
From
var kSecAttrModificationDate: CFStringRef
To
let kSecAttrModificationDate: CFString

Modified kSecAttrPath
Declaration
From
var kSecAttrPath: CFStringRef
To
let kSecAttrPath: CFString

Modified kSecAttrPort
Declaration
From
var kSecAttrPort: CFStringRef
To
let kSecAttrPort: CFString

Declaration
From
var kSecAttrProtocol: CFStringRef
To
let kSecAttrProtocol: CFString

Declaration
From
var kSecAttrProtocolAFP: CFStringRef
To
let kSecAttrProtocolAFP: CFString

Declaration
From
var kSecAttrProtocolAppleTalk: CFStringRef
To
let kSecAttrProtocolAppleTalk: CFString

Declaration
From
var kSecAttrProtocolDAAP: CFStringRef
To
let kSecAttrProtocolDAAP: CFString

Declaration
From
var kSecAttrProtocolEPPC: CFStringRef
To
let kSecAttrProtocolEPPC: CFString

Declaration
From
var kSecAttrProtocolFTP: CFStringRef
To
let kSecAttrProtocolFTP: CFString

Declaration
From
var kSecAttrProtocolFTPAccount: CFStringRef
To
let kSecAttrProtocolFTPAccount: CFString

Declaration
From
var kSecAttrProtocolFTPProxy: CFStringRef
To
let kSecAttrProtocolFTPProxy: CFString

Declaration
From
var kSecAttrProtocolFTPS: CFStringRef
To
let kSecAttrProtocolFTPS: CFString

Declaration
From
var kSecAttrProtocolHTTP: CFStringRef
To
let kSecAttrProtocolHTTP: CFString

Declaration
From
var kSecAttrProtocolHTTPProxy: CFStringRef
To
let kSecAttrProtocolHTTPProxy: CFString

Declaration
From
var kSecAttrProtocolHTTPS: CFStringRef
To
let kSecAttrProtocolHTTPS: CFString

Declaration
From
var kSecAttrProtocolHTTPSProxy: CFStringRef
To
let kSecAttrProtocolHTTPSProxy: CFString

Declaration
From
var kSecAttrProtocolIMAP: CFStringRef
To
let kSecAttrProtocolIMAP: CFString

Declaration
From
var kSecAttrProtocolIMAPS: CFStringRef
To
let kSecAttrProtocolIMAPS: CFString

Declaration
From
var kSecAttrProtocolIPP: CFStringRef
To
let kSecAttrProtocolIPP: CFString

Declaration
From
var kSecAttrProtocolIRC: CFStringRef
To
let kSecAttrProtocolIRC: CFString

Declaration
From
var kSecAttrProtocolIRCS: CFStringRef
To
let kSecAttrProtocolIRCS: CFString

Declaration
From
var kSecAttrProtocolLDAP: CFStringRef
To
let kSecAttrProtocolLDAP: CFString

Declaration
From
var kSecAttrProtocolLDAPS: CFStringRef
To
let kSecAttrProtocolLDAPS: CFString

Declaration
From
var kSecAttrProtocolNNTP: CFStringRef
To
let kSecAttrProtocolNNTP: CFString

Declaration
From
var kSecAttrProtocolNNTPS: CFStringRef
To
let kSecAttrProtocolNNTPS: CFString

Declaration
From
var kSecAttrProtocolPOP3: CFStringRef
To
let kSecAttrProtocolPOP3: CFString

Declaration
From
var kSecAttrProtocolPOP3S: CFStringRef
To
let kSecAttrProtocolPOP3S: CFString

Declaration
From
var kSecAttrProtocolRTSP: CFStringRef
To
let kSecAttrProtocolRTSP: CFString

Declaration
From
var kSecAttrProtocolRTSPProxy: CFStringRef
To
let kSecAttrProtocolRTSPProxy: CFString

Declaration
From
var kSecAttrProtocolSMB: CFStringRef
To
let kSecAttrProtocolSMB: CFString

Declaration
From
var kSecAttrProtocolSMTP: CFStringRef
To
let kSecAttrProtocolSMTP: CFString

Declaration
From
var kSecAttrProtocolSOCKS: CFStringRef
To
let kSecAttrProtocolSOCKS: CFString

Declaration
From
var kSecAttrProtocolSSH: CFStringRef
To
let kSecAttrProtocolSSH: CFString

Declaration
From
var kSecAttrProtocolTelnet: CFStringRef
To
let kSecAttrProtocolTelnet: CFString

Declaration
From
var kSecAttrProtocolTelnetS: CFStringRef
To
let kSecAttrProtocolTelnetS: CFString

Declaration
From
var kSecAttrPublicKeyHash: CFStringRef
To
let kSecAttrPublicKeyHash: CFString

Declaration
From
var kSecAttrSecurityDomain: CFStringRef
To
let kSecAttrSecurityDomain: CFString

Declaration
From
var kSecAttrSerialNumber: CFStringRef
To
let kSecAttrSerialNumber: CFString

Declaration
From
var kSecAttrServer: CFStringRef
To
let kSecAttrServer: CFString

Declaration
From
var kSecAttrService: CFStringRef
To
let kSecAttrService: CFString

Declaration
From
var kSecAttrSubject: CFStringRef
To
let kSecAttrSubject: CFString

Declaration
From
var kSecAttrSubjectKeyID: CFStringRef
To
let kSecAttrSubjectKeyID: CFString

Declaration
From
var kSecAttrSynchronizable: CFStringRef
To
let kSecAttrSynchronizable: CFString

Declaration
From
var kSecAttrSynchronizableAny: CFStringRef
To
let kSecAttrSynchronizableAny: CFString

Modified kSecAttrType
Declaration
From
var kSecAttrType: CFStringRef
To
let kSecAttrType: CFString

Modified kSecClass
Declaration
From
var kSecClass: CFStringRef
To
let kSecClass: CFString

Declaration
From
var kSecClassCertificate: CFStringRef
To
let kSecClassCertificate: CFString

Declaration
From
var kSecClassGenericPassword: CFStringRef
To
let kSecClassGenericPassword: CFString

Declaration
From
var kSecClassIdentity: CFStringRef
To
let kSecClassIdentity: CFString

Declaration
From
var kSecClassInternetPassword: CFStringRef
To
let kSecClassInternetPassword: CFString

Modified kSecClassKey
Declaration
From
var kSecClassKey: CFStringRef
To
let kSecClassKey: CFString

Declaration
From
var kSecImportExportPassphrase: Unmanaged<CFString>!
To
let kSecImportExportPassphrase: CFString

Declaration
From
var kSecImportItemCertChain: Unmanaged<CFString>!
To
let kSecImportItemCertChain: CFString

Declaration
From
var kSecImportItemIdentity: Unmanaged<CFString>!
To
let kSecImportItemIdentity: CFString

Declaration
From
var kSecImportItemKeyID: Unmanaged<CFString>!
To
let kSecImportItemKeyID: CFString

Declaration
From
var kSecImportItemLabel: Unmanaged<CFString>!
To
let kSecImportItemLabel: CFString

Declaration
From
var kSecImportItemTrust: Unmanaged<CFString>!
To
let kSecImportItemTrust: CFString

Declaration
From
var kSecMatchCaseInsensitive: CFStringRef
To
let kSecMatchCaseInsensitive: CFString

Declaration
From
var kSecMatchEmailAddressIfPresent: CFStringRef
To
let kSecMatchEmailAddressIfPresent: CFString

Declaration
From
var kSecMatchIssuers: CFStringRef
To
let kSecMatchIssuers: CFString

Declaration
From
var kSecMatchItemList: CFStringRef
To
let kSecMatchItemList: CFString

Declaration
From
var kSecMatchLimit: CFStringRef
To
let kSecMatchLimit: CFString

Declaration
From
var kSecMatchLimitAll: CFStringRef
To
let kSecMatchLimitAll: CFString

Declaration
From
var kSecMatchLimitOne: CFStringRef
To
let kSecMatchLimitOne: CFString

Declaration
From
var kSecMatchPolicy: CFStringRef
To
let kSecMatchPolicy: CFString

Declaration
From
var kSecMatchSearchList: CFStringRef
To
let kSecMatchSearchList: CFString

Declaration
From
var kSecMatchSubjectContains: CFStringRef
To
let kSecMatchSubjectContains: CFString

Declaration
From
var kSecMatchTrustedOnly: CFStringRef
To
let kSecMatchTrustedOnly: CFString

Declaration
From
var kSecMatchValidOnDate: CFStringRef
To
let kSecMatchValidOnDate: CFString

Declaration
From
var kSecPolicyAppleCodeSigning: Unmanaged<AnyObject>!
To
let kSecPolicyAppleCodeSigning: CFString

Declaration
From
var kSecPolicyAppleEAP: Unmanaged<AnyObject>!
To
let kSecPolicyAppleEAP: CFString

Declaration
From
var kSecPolicyAppleIDValidation: Unmanaged<AnyObject>!
To
let kSecPolicyAppleIDValidation: CFString

Declaration
From
var kSecPolicyAppleIPsec: Unmanaged<AnyObject>!
To
let kSecPolicyAppleIPsec: CFString

Declaration
From
var kSecPolicyAppleRevocation: Unmanaged<AnyObject>!
To
let kSecPolicyAppleRevocation: CFString

Declaration
From
var kSecPolicyAppleSMIME: Unmanaged<AnyObject>!
To
let kSecPolicyAppleSMIME: CFString

Declaration
From
var kSecPolicyAppleSSL: Unmanaged<AnyObject>!
To
let kSecPolicyAppleSSL: CFString

Declaration
From
var kSecPolicyAppleTimeStamping: Unmanaged<AnyObject>!
To
let kSecPolicyAppleTimeStamping: CFString

Declaration
From
var kSecPolicyAppleX509Basic: Unmanaged<AnyObject>!
To
let kSecPolicyAppleX509Basic: CFString

Declaration
From
var kSecPolicyClient: Unmanaged<AnyObject>!
To
let kSecPolicyClient: CFString

Declaration
From
var kSecPolicyName: Unmanaged<AnyObject>!
To
let kSecPolicyName: CFString

Modified kSecPolicyOid
Declaration
From
var kSecPolicyOid: Unmanaged<AnyObject>!
To
let kSecPolicyOid: CFString

Declaration
From
var kSecPolicyRevocationFlags: Unmanaged<AnyObject>!
To
let kSecPolicyRevocationFlags: CFString

Declaration
From
var kSecPrivateKeyAttrs: Unmanaged<AnyObject>!
To
let kSecPrivateKeyAttrs: CFString

Declaration
From
var kSecPropertyTypeError: Unmanaged<AnyObject>!
To
let kSecPropertyTypeError: CFString

Declaration
From
var kSecPropertyTypeTitle: Unmanaged<AnyObject>!
To
let kSecPropertyTypeTitle: CFString

Declaration
From
var kSecPublicKeyAttrs: Unmanaged<AnyObject>!
To
let kSecPublicKeyAttrs: CFString

Declaration
From
var kSecReturnAttributes: CFStringRef
To
let kSecReturnAttributes: CFString

Declaration
From
var kSecReturnData: CFStringRef
To
let kSecReturnData: CFString

Declaration
From
var kSecReturnPersistentRef: CFStringRef
To
let kSecReturnPersistentRef: CFString

Modified kSecReturnRef
Declaration
From
var kSecReturnRef: CFStringRef
To
let kSecReturnRef: CFString

Declaration
From
var kSecRevocationCRLMethod: Int { get }
To
var kSecRevocationCRLMethod: CFOptionFlags { get }

Declaration
From
var kSecRevocationNetworkAccessDisabled: Int { get }
To
var kSecRevocationNetworkAccessDisabled: CFOptionFlags { get }

Declaration
From
var kSecRevocationOCSPMethod: Int { get }
To
var kSecRevocationOCSPMethod: CFOptionFlags { get }

Declaration
From
var kSecRevocationPreferCRL: Int { get }
To
var kSecRevocationPreferCRL: CFOptionFlags { get }

Declaration
From
var kSecRevocationRequirePositiveResponse: Int { get }
To
var kSecRevocationRequirePositiveResponse: CFOptionFlags { get }

Declaration
From
var kSecRevocationUseAnyAvailableMethod: Int { get }
To
var kSecRevocationUseAnyAvailableMethod: CFOptionFlags { get }

Declaration
From
var kSecSharedPassword: Unmanaged<AnyObject>!
To
let kSecSharedPassword: CFString

Declaration
From
var kSecTrustEvaluationDate: Unmanaged<AnyObject>!
To
let kSecTrustEvaluationDate: CFString

Declaration
From
var kSecTrustExtendedValidation: Unmanaged<AnyObject>!
To
let kSecTrustExtendedValidation: CFString

Declaration
From
var kSecTrustOrganizationName: Unmanaged<AnyObject>!
To
let kSecTrustOrganizationName: CFString

Declaration
From
var kSecTrustResultValue: Unmanaged<AnyObject>!
To
let kSecTrustResultValue: CFString

Declaration
From
var kSecTrustRevocationChecked: Unmanaged<AnyObject>!
To
let kSecTrustRevocationChecked: CFString

Declaration
From
var kSecTrustRevocationValidUntilDate: Unmanaged<AnyObject>!
To
let kSecTrustRevocationValidUntilDate: CFString

Declaration
From
var kSecUseItemList: CFStringRef
To
let kSecUseItemList: CFString

DeclarationDeprecation
From
var kSecUseNoAuthenticationUI: CFStringRef
--
To
let kSecUseNoAuthenticationUI: CFString
iOS 9.0

Declaration
From
var kSecUseOperationPrompt: CFStringRef
To
let kSecUseOperationPrompt: CFString

Modified kSecValueData
Declaration
From
var kSecValueData: CFStringRef
To
let kSecValueData: CFString

Declaration
From
var kSecValuePersistentRef: CFStringRef
To
let kSecValuePersistentRef: CFString

Modified kSecValueRef
Declaration
From
var kSecValueRef: CFStringRef
To
let kSecValueRef: CFString

Declaration
From
func SecAccessControlCreateWithFlags(_ allocator: CFAllocator!, _ protection: AnyObject!, _ flags: SecAccessControlCreateFlags, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>) -> Unmanaged<SecAccessControl>!
To
func SecAccessControlCreateWithFlags(_ allocator: CFAllocator?, _ protection: AnyObject, _ flags: SecAccessControlCreateFlags, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>) -> SecAccessControl?

Declaration
From
func SecAddSharedWebCredential(_ fqdn: CFString!, _ account: CFString!, _ password: CFString!, _ completionHandler: ((CFError!) -> Void)!)
To
func SecAddSharedWebCredential(_ fqdn: CFString, _ account: CFString, _ password: CFString?, _ completionHandler: (CFError?) -> Void)

Declaration
From
func SecCertificateCopyData(_ certificate: SecCertificate!) -> Unmanaged<CFData>!
To
func SecCertificateCopyData(_ certificate: SecCertificate) -> CFData

Declaration
From
func SecCertificateCopySubjectSummary(_ certificate: SecCertificate!) -> Unmanaged<CFString>!
To
func SecCertificateCopySubjectSummary(_ certificate: SecCertificate) -> CFString

Declaration
From
func SecCertificateCreateWithData(_ allocator: CFAllocator!, _ data: CFData!) -> Unmanaged<SecCertificate>!
To
func SecCertificateCreateWithData(_ allocator: CFAllocator?, _ data: CFData) -> SecCertificate?

Declaration
From
func SecCreateSharedWebCredentialPassword() -> Unmanaged<CFString>!
To
func SecCreateSharedWebCredentialPassword() -> CFString?

Declaration
From
func SecIdentityCopyCertificate(_ identityRef: SecIdentity!, _ certificateRef: UnsafeMutablePointer<Unmanaged<SecCertificate>?>) -> OSStatus
To
func SecIdentityCopyCertificate(_ identityRef: SecIdentity, _ certificateRef: UnsafeMutablePointer<SecCertificate?>) -> OSStatus

Declaration
From
func SecIdentityCopyPrivateKey(_ identityRef: SecIdentity!, _ privateKeyRef: UnsafeMutablePointer<Unmanaged<SecKey>?>) -> OSStatus
To
func SecIdentityCopyPrivateKey(_ identityRef: SecIdentity, _ privateKeyRef: UnsafeMutablePointer<SecKey?>) -> OSStatus

Declaration
From
func SecItemAdd(_ attributes: CFDictionary!, _ result: UnsafeMutablePointer<Unmanaged<AnyObject>?>) -> OSStatus
To
func SecItemAdd(_ attributes: CFDictionary, _ result: UnsafeMutablePointer<AnyObject?>) -> OSStatus

Declaration
From
func SecItemCopyMatching(_ query: CFDictionary!, _ result: UnsafeMutablePointer<Unmanaged<AnyObject>?>) -> OSStatus
To
func SecItemCopyMatching(_ query: CFDictionary, _ result: UnsafeMutablePointer<AnyObject?>) -> OSStatus

Declaration
From
func SecItemDelete(_ query: CFDictionary!) -> OSStatus
To
func SecItemDelete(_ query: CFDictionary) -> OSStatus

Declaration
From
func SecItemUpdate(_ query: CFDictionary!, _ attributesToUpdate: CFDictionary!) -> OSStatus
To
func SecItemUpdate(_ query: CFDictionary, _ attributesToUpdate: CFDictionary) -> OSStatus

Declaration
From
func SecKeyDecrypt(_ key: SecKey!, _ padding: SecPadding, _ cipherText: UnsafePointer<UInt8>, _ cipherTextLen: Int, _ plainText: UnsafeMutablePointer<UInt8>, _ plainTextLen: UnsafeMutablePointer<Int>) -> OSStatus
To
func SecKeyDecrypt(_ key: SecKey, _ padding: SecPadding, _ cipherText: UnsafePointer<UInt8>, _ cipherTextLen: Int, _ plainText: UnsafeMutablePointer<UInt8>, _ plainTextLen: UnsafeMutablePointer<Int>) -> OSStatus

Declaration
From
func SecKeyEncrypt(_ key: SecKey!, _ padding: SecPadding, _ plainText: UnsafePointer<UInt8>, _ plainTextLen: Int, _ cipherText: UnsafeMutablePointer<UInt8>, _ cipherTextLen: UnsafeMutablePointer<Int>) -> OSStatus
To
func SecKeyEncrypt(_ key: SecKey, _ padding: SecPadding, _ plainText: UnsafePointer<UInt8>, _ plainTextLen: Int, _ cipherText: UnsafeMutablePointer<UInt8>, _ cipherTextLen: UnsafeMutablePointer<Int>) -> OSStatus

Declaration
From
func SecKeyGeneratePair(_ parameters: CFDictionary!, _ publicKey: UnsafeMutablePointer<Unmanaged<SecKey>?>, _ privateKey: UnsafeMutablePointer<Unmanaged<SecKey>?>) -> OSStatus
To
func SecKeyGeneratePair(_ parameters: CFDictionary, _ publicKey: UnsafeMutablePointer<SecKey?>, _ privateKey: UnsafeMutablePointer<SecKey?>) -> OSStatus

Declaration
From
func SecKeyGetBlockSize(_ key: SecKey!) -> Int
To
func SecKeyGetBlockSize(_ key: SecKey) -> Int

Declaration
From
func SecKeyRawSign(_ key: SecKey!, _ padding: SecPadding, _ dataToSign: UnsafePointer<UInt8>, _ dataToSignLen: Int, _ sig: UnsafeMutablePointer<UInt8>, _ sigLen: UnsafeMutablePointer<Int>) -> OSStatus
To
func SecKeyRawSign(_ key: SecKey, _ padding: SecPadding, _ dataToSign: UnsafePointer<UInt8>, _ dataToSignLen: Int, _ sig: UnsafeMutablePointer<UInt8>, _ sigLen: UnsafeMutablePointer<Int>) -> OSStatus

Declaration
From
func SecKeyRawVerify(_ key: SecKey!, _ padding: SecPadding, _ signedData: UnsafePointer<UInt8>, _ signedDataLen: Int, _ sig: UnsafePointer<UInt8>, _ sigLen: Int) -> OSStatus
To
func SecKeyRawVerify(_ key: SecKey, _ padding: SecPadding, _ signedData: UnsafePointer<UInt8>, _ signedDataLen: Int, _ sig: UnsafePointer<UInt8>, _ sigLen: Int) -> OSStatus

Declaration
From
func SecPKCS12Import(_ pkcs12_data: CFData!, _ options: CFDictionary!, _ items: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
To
func SecPKCS12Import(_ pkcs12_data: CFData, _ options: CFDictionary, _ items: UnsafeMutablePointer<CFArray?>) -> OSStatus

Declaration
From
func SecPolicyCopyProperties(_ policyRef: SecPolicy!) -> Unmanaged<CFDictionary>!
To
func SecPolicyCopyProperties(_ policyRef: SecPolicy) -> CFDictionary

Declaration
From
func SecPolicyCreateBasicX509() -> Unmanaged<SecPolicy>!
To
func SecPolicyCreateBasicX509() -> SecPolicy

Declaration
From
func SecPolicyCreateRevocation(_ revocationFlags: CFOptionFlags) -> Unmanaged<SecPolicy>!
To
func SecPolicyCreateRevocation(_ revocationFlags: CFOptionFlags) -> SecPolicy

Declaration
From
func SecPolicyCreateSSL(_ server: Boolean, _ hostname: CFString!) -> Unmanaged<SecPolicy>!
To
func SecPolicyCreateSSL(_ server: Bool, _ hostname: CFString?) -> SecPolicy

Declaration
From
func SecPolicyCreateWithProperties(_ policyIdentifier: AnyObject!, _ properties: CFDictionary!) -> Unmanaged<SecPolicy>!
To
func SecPolicyCreateWithProperties(_ policyIdentifier: AnyObject, _ properties: CFDictionary?) -> SecPolicy

Declaration
From
func SecRequestSharedWebCredential(_ fqdn: CFString!, _ account: CFString!, _ completionHandler: ((CFArray!, CFError!) -> Void)!)
To
func SecRequestSharedWebCredential(_ fqdn: CFString?, _ account: CFString?, _ completionHandler: (CFArray?, CFError?) -> Void)

Declaration
From
typealias SecTrustCallback = (SecTrust!, SecTrustResultType) -> Void
To
typealias SecTrustCallback = (SecTrust, SecTrustResultType) -> Void

Declaration
From
func SecTrustCopyCustomAnchorCertificates(_ trust: SecTrust!, _ anchors: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
To
func SecTrustCopyCustomAnchorCertificates(_ trust: SecTrust, _ anchors: UnsafeMutablePointer<CFArray?>) -> OSStatus

Declaration
From
func SecTrustCopyExceptions(_ trust: SecTrust!) -> Unmanaged<CFData>!
To
func SecTrustCopyExceptions(_ trust: SecTrust) -> CFData

Declaration
From
func SecTrustCopyPolicies(_ trust: SecTrust!, _ policies: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> OSStatus
To
func SecTrustCopyPolicies(_ trust: SecTrust, _ policies: UnsafeMutablePointer<CFArray?>) -> OSStatus

Declaration
From
func SecTrustCopyProperties(_ trust: SecTrust!) -> Unmanaged<CFArray>!
To
func SecTrustCopyProperties(_ trust: SecTrust) -> CFArray?

Declaration
From
func SecTrustCopyPublicKey(_ trust: SecTrust!) -> Unmanaged<SecKey>!
To
func SecTrustCopyPublicKey(_ trust: SecTrust) -> SecKey?

Declaration
From
func SecTrustCopyResult(_ trust: SecTrust!) -> Unmanaged<CFDictionary>!
To
func SecTrustCopyResult(_ trust: SecTrust) -> CFDictionary?

Declaration
From
func SecTrustCreateWithCertificates(_ certificates: AnyObject!, _ policies: AnyObject!, _ trust: UnsafeMutablePointer<Unmanaged<SecTrust>?>) -> OSStatus
To
func SecTrustCreateWithCertificates(_ certificates: AnyObject, _ policies: AnyObject?, _ trust: UnsafeMutablePointer<SecTrust?>) -> OSStatus

Declaration
From
func SecTrustEvaluate(_ trust: SecTrust!, _ result: UnsafeMutablePointer<SecTrustResultType>) -> OSStatus
To
func SecTrustEvaluate(_ trust: SecTrust, _ result: UnsafeMutablePointer<SecTrustResultType>) -> OSStatus

Declaration
From
func SecTrustEvaluateAsync(_ trust: SecTrust!, _ queue: dispatch_queue_t!, _ result: SecTrustCallback!) -> OSStatus
To
func SecTrustEvaluateAsync(_ trust: SecTrust, _ queue: dispatch_queue_t?, _ result: SecTrustCallback) -> OSStatus

Declaration
From
func SecTrustGetCertificateAtIndex(_ trust: SecTrust!, _ ix: CFIndex) -> Unmanaged<SecCertificate>!
To
func SecTrustGetCertificateAtIndex(_ trust: SecTrust, _ ix: CFIndex) -> SecCertificate?

Declaration
From
func SecTrustGetCertificateCount(_ trust: SecTrust!) -> CFIndex
To
func SecTrustGetCertificateCount(_ trust: SecTrust) -> CFIndex

Declaration
From
func SecTrustGetNetworkFetchAllowed(_ trust: SecTrust!, _ allowFetch: UnsafeMutablePointer<Boolean>) -> OSStatus
To
func SecTrustGetNetworkFetchAllowed(_ trust: SecTrust, _ allowFetch: UnsafeMutablePointer<DarwinBoolean>) -> OSStatus

Declaration
From
func SecTrustGetTrustResult(_ trust: SecTrust!, _ result: UnsafeMutablePointer<SecTrustResultType>) -> OSStatus
To
func SecTrustGetTrustResult(_ trust: SecTrust, _ result: UnsafeMutablePointer<SecTrustResultType>) -> OSStatus

Declaration
From
func SecTrustGetVerifyTime(_ trust: SecTrust!) -> CFAbsoluteTime
To
func SecTrustGetVerifyTime(_ trust: SecTrust) -> CFAbsoluteTime

Declaration
From
func SecTrustSetAnchorCertificates(_ trust: SecTrust!, _ anchorCertificates: CFArray!) -> OSStatus
To
func SecTrustSetAnchorCertificates(_ trust: SecTrust, _ anchorCertificates: CFArray) -> OSStatus

Declaration
From
func SecTrustSetAnchorCertificatesOnly(_ trust: SecTrust!, _ anchorCertificatesOnly: Boolean) -> OSStatus
To
func SecTrustSetAnchorCertificatesOnly(_ trust: SecTrust, _ anchorCertificatesOnly: Bool) -> OSStatus

Declaration
From
func SecTrustSetExceptions(_ trust: SecTrust!, _ exceptions: CFData!) -> Bool
To
func SecTrustSetExceptions(_ trust: SecTrust, _ exceptions: CFData) -> Bool

Declaration
From
func SecTrustSetNetworkFetchAllowed(_ trust: SecTrust!, _ allowFetch: Boolean) -> OSStatus
To
func SecTrustSetNetworkFetchAllowed(_ trust: SecTrust, _ allowFetch: Bool) -> OSStatus

Declaration
From
func SecTrustSetOCSPResponse(_ trust: SecTrust!, _ responseData: AnyObject!) -> OSStatus
To
func SecTrustSetOCSPResponse(_ trust: SecTrust, _ responseData: AnyObject?) -> OSStatus

Declaration
From
func SecTrustSetPolicies(_ trust: SecTrust!, _ policies: AnyObject!) -> OSStatus
To
func SecTrustSetPolicies(_ trust: SecTrust, _ policies: AnyObject) -> OSStatus

Declaration
From
func SecTrustSetVerifyDate(_ trust: SecTrust!, _ verifyDate: CFDate!) -> OSStatus
To
func SecTrustSetVerifyDate(_ trust: SecTrust, _ verifyDate: CFDate) -> OSStatus