<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.7.0 - 10.9.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWKeychainSetEAPIdentity",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:@F@CWKeychainSetEAPIdentity"
  },
  "title" : "CWKeychainSetEAPIdentity"
}
-->

# CWKeychainSetEAPIdentity

Associates an exisiting identity item to the specified SSID.

```
OSStatus CWKeychainSetEAPIdentity(CFDataRef ssidData, SecIdentityRef identity);
```

## Parameters

`identity`

The identity containing the certificate to use for EAPOL.

## Return Value

An OSStatus error code which will indicate whether or not a failure occurred during execution. *errSecSuccess* indicates no error occurred.

## Discussion

If the *identity* is *nil<i/> the method will disassociate the specified SSID from its identitiy.*

---

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)