CWKeychainSetEAPIdentity

Function CWKeychainSetEAPIdentity 

Source
pub unsafe extern "C-unwind" fn CWKeychainSetEAPIdentity(
    ssid_data: &CFData,
    identity: Option<&SecIdentity>,
) -> i32
👎Deprecated: Use CWKeychainSetWiFiEAPIdentity() instead
Available on crate features CoreWLANUtil and objc2-core-foundation and objc2-security only.
Expand description

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

Parameter identity: The identity containing the certificate to use for 802.1X authentication. Passing nil clears any identity association for the specified SSID.

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

Associates an identity to the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain().