Function

sec_protocol_options_set_challenge_block(_:_:_:)

Sets a handler to receive identity challenges.

Declaration

func sec_protocol_options_set_challenge_block(_ options: sec_protocol_options_t, _ challenge_block: @escaping sec_protocol_challenge_t, _ challenge_queue: DispatchQueue)

See Also

Handling TLS Events

typealias sec_protocol_verify_t

A block that delivers a trust object for verification during a TLS handshake.

typealias sec_protocol_verify_complete_t

A block you return to indicate the result of a trust verification, where true indicates verification success.

typealias sec_protocol_challenge_t

A block that delivers the current TLS state for a handshake upon an identity challenge.

typealias sec_protocol_challenge_complete_t

A block you return to indicate the identity with which to reply to a challenge.

typealias sec_protocol_key_update_t

A block that delivers the current TLS state upon a key update.

typealias sec_protocol_key_update_complete_t

A block you return to indicate that you have finished responding to a key update.

typealias sec_protocol_pre_shared_key_selection_t

A block that delivers a PSK identity given a hint from its peers.

typealias sec_protocol_pre_shared_key_selection_complete_t

A block you return to indicate that you have chosen a PSK identity.