<!--
{
  "documentType" : "article",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/corewlan-functions",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CoreWLAN Functions"
}
-->

# CoreWLAN Functions

## Topics

### Functions

[`func CWKeychainCopyWiFiEAPIdentity(CWKeychainDomain, Data, UnsafeMutablePointer<Unmanaged<SecIdentity>?>?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainCopyWiFiEAPIdentity(_:_:_:))

Finds and returns the identity stored for the SSID and keychain domain you specify.

[`func CWKeychainDeleteWiFiEAPUsernameAndPassword(CWKeychainDomain, Data) -> OSStatus`](/documentation/CoreWLAN/CWKeychainDeleteWiFiEAPUsernameAndPassword(_:_:))

Deletes the 802.1X username and password for the SSID and keychain domain you specify.

[`func CWKeychainDeleteWiFiPassword(CWKeychainDomain, Data) -> OSStatus`](/documentation/CoreWLAN/CWKeychainDeleteWiFiPassword(_:_:))

Deletes the password for the SSID and keychain domain you specify.

[`func CWKeychainFindWiFiEAPUsernameAndPassword(CWKeychainDomain, Data, AutoreleasingUnsafeMutablePointer<NSString?>?, AutoreleasingUnsafeMutablePointer<NSString?>?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainFindWiFiEAPUsernameAndPassword(_:_:_:_:))

Finds and returns the 802.1X username and password stored for the SSID and keychain domain you specify.

[`func CWKeychainFindWiFiPassword(CWKeychainDomain, Data, AutoreleasingUnsafeMutablePointer<NSString?>?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainFindWiFiPassword(_:_:_:))

Finds and returns, by reference, the password for the SSID and keychain domain you specify.

[`func CWKeychainSetWiFiEAPIdentity(CWKeychainDomain, Data, SecIdentity?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainSetWiFiEAPIdentity(_:_:_:))

Associates an identity to the SSID and keychain domain you specify.

[`func CWKeychainSetWiFiEAPUsernameAndPassword(CWKeychainDomain, Data, String?, String?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainSetWiFiEAPUsernameAndPassword(_:_:_:_:))

Sets the 802.1X username and password for the SSID and keychain domain you specify.

[`func CWKeychainSetWiFiPassword(CWKeychainDomain, Data, String) -> OSStatus`](/documentation/CoreWLAN/CWKeychainSetWiFiPassword(_:_:_:))

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)