CWKeychainSetWiFiPassword

Function CWKeychainSetWiFiPassword 

Source
pub unsafe extern "C-unwind" fn CWKeychainSetWiFiPassword(
    domain: CWKeychainDomain,
    ssid: &NSData,
    password: &NSString,
) -> i32
Available on crate features CoreWLANTypes and CoreWLANUtil 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 password: The Wi-Fi network password.

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

Sets the Wi-Fi network keychain password for the specified SSID and keychain domain.