<!--
{
  "documentType" : "article",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/corewlanutil-h",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "CoreWLANUtil.h"
}
-->

# CoreWLANUtil.h

## Discussion

### Included Headers

- <Foundation/Foundation.h>

## Topics

### Utility Methods

[`OSStatus CWKeychainCopyEAPIdentity(CFDataRef ssidData, SecIdentityRef*identity);`](/documentation/CoreWLAN/CWKeychainCopyEAPIdentity)

Finds and returns the identity stored for corresponding network with the specified SSID.

[`func CWKeychainCopyEAPIdentityList(UnsafeMutablePointer<Unmanaged<CFArray>?>?) -> OSStatus`](/documentation/CoreWLAN/CWKeychainCopyEAPIdentityList(_:))

Finds and returns the available identities stored in the keychain.

[`OSStatus CWKeychainCopyEAPUsernameAndPassword(CFDataRef ssidData, CFStringRef*username, CFStringRef*password);`](/documentation/CoreWLAN/CWKeychainCopyEAPUsernameAndPassword)

Finds and returns the username and password stored for corresponding network with the specified SSID.

[`OSStatus CWKeychainCopyPassword(CFDataRef ssidData, CFStringRef*password);`](/documentation/CoreWLAN/CWKeychainCopyPassword)

Finds and returns the keychain password stored for the corresponding network with the specified SSID.

[`OSStatus CWKeychainDeleteEAPUsernameAndPassword(CFDataRef ssidData);`](/documentation/CoreWLAN/CWKeychainDeleteEAPUsernameAndPassword)

Deletes the keychain item containing the 802.1X username and password for the specified SSID.

[`OSStatus CWKeychainDeletePassword(CFDataRef ssidData);`](/documentation/CoreWLAN/CWKeychainDeletePassword)

Deletes the network password for the specified SSID from the default keychain.

[`OSStatus CWKeychainSetEAPIdentity(CFDataRef ssidData, SecIdentityRef identity);`](/documentation/CoreWLAN/CWKeychainSetEAPIdentity)

Associates an exisiting identity item to the specified SSID.

[`OSStatus CWKeychainSetEAPUsernameAndPassword(CFDataRef ssidData, CFStringRef username, CFStringRef password);`](/documentation/CoreWLAN/CWKeychainSetEAPUsernameAndPassword)

Sets the keychain item containing the 802.1X username and password for the specified SSID.

[`OSStatus CWKeychainSetPassword(CFDataRef ssidData, CFStringRef password);`](/documentation/CoreWLAN/CWKeychainSetPassword)

Sets the network keychain password for the specified SSID.

[`func CWMergeNetworks(Set<CWNetwork>) -> Set<CWNetwork>`](/documentation/CoreWLAN/CWMergeNetworks(_:))

Merges the specified set of CWNetwork objects.



---

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)