CWKeychainCopyWiFiEAPIdentity

Function CWKeychainCopyWiFiEAPIdentity 

Source
pub unsafe extern "C-unwind" fn CWKeychainCopyWiFiEAPIdentity(
    domain: CWKeychainDomain,
    ssid: &NSData,
    identity: *mut *mut SecIdentity,
) -> i32
Available on crate features CoreWLANTypes and CoreWLANUtil and objc2-security only.
Expand description

Parameter domain: The keychain domain, which determines which keychain will be used.

Parameter ssid: The service set identifier (SSID) which is used to uniquely identify the keychain item.

Parameter identity: A SecIdentityRef passed by reference, which upon return will contain the SecIdentityRef associated with the specified SSID. This parameter is optional. The returned value must be released by the caller.

Returns: An OSStatus error code indicating whether or not a failure occurred. errSecSuccess indicates no error occurred.

Finds and returns the identity stored for the specified SSID and keychain domain.

ยงSafety

identity must be a valid pointer or null.