pub unsafe extern "C-unwind" fn CWKeychainCopyEAPUsernameAndPassword(
ssid_data: &CFData,
username: *mut *const CFString,
password: *mut *const CFString,
) -> i32CoreWLANUtil and objc2-core-foundation only.Expand description
Parameter ssidData: The service set identifier (SSID) which is used to uniquely identify the keychain item.
Parameter username: A CFStringRef passed by reference, which upon return will contain the 802.1X username for the specified SSID.
This parameter is optional. The returned value must be released by the caller.
Parameter password: A CFStringRef passed by reference, which upon return will contain the 802.1X password for 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 802.1X username and password stored for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain().
ยงSafety
usernamemust be a valid pointer or null.passwordmust be a valid pointer or null.