void myqtt_tls_set_failure_handler ( MyQttCtx ctx,
MyQttTlsFailureHandler  failure_handler,
axlPointer  user_data 
)

Allows to configure a failure handler that will be called when a failure is found at SSL level or during the handshake with the particular function failing.

Parameters
ctxThe context that will be configured with the failure handler.
failure_handlerThe failure handler to be called when an error is found.
user_dataOptional user pointer to be passed into the function when the handler is called.

References myqtt_ctx_get_data().