<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/sec_protocol_options_set_tls_pre_shared_key_identity_hint(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@sec_protocol_options_set_tls_pre_shared_key_identity_hint"
  },
  "title" : "sec_protocol_options_set_tls_pre_shared_key_identity_hint(_:_:)"
}
-->

# sec_protocol_options_set_tls_pre_shared_key_identity_hint(_:_:)

```
func sec_protocol_options_set_tls_pre_shared_key_identity_hint(_ options: sec_protocol_options_t, _ psk_identity_hint: dispatch_data_t)
```

## Parameters

`options`

A `sec_protocol_options_t` instance.

`psk_identity_hint`

A dispatch_data_t containing a PSK identity hint.

## Discussion

\abstract Set the PSK identity hint to use by servers when negotiating a PSK ciphersuite.
See https://tools.ietf.org/html/rfc4279 for more details.

---

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)