Contents

sec_protocol_metadata_copy_negotiated_protocol(_:)

Declaration

func sec_protocol_metadata_copy_negotiated_protocol(_ metadata: sec_protocol_metadata_t) -> UnsafePointer<CChar>?

Parameters

  • metadata:

    A sec_protocol_metadata_t instance.

Return Value

A NULL-terminated string carrying the negotiated protocol.

Discussion

Copy the application protocol negotiated, e.g., via the TLS ALPN extension. The caller is expected to free the output string when no longer needed.