axl_bool myqtt_tls_init ( MyQttCtx ctx)

Initialize TLS library.

All client applications using TLS must call to this function in order to ensure TLS engine can be used.

ctxThe context where the operation will be performed.
axl_true if the TLS was initialized. Otherwise axl_false is returned. If the function returns axl_false, TLS is not available and any call to operate with the TLS api will fail.

References myqtt_ctx_get_data(), myqtt_ctx_set_data_full(), myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqtt_tls_listener_set_certificate_handlers().