typedef char*(* MyQttTlsPrivateKeyFileLocator)(MyQttCtx *ctx, MyQttConn *connection, const char *serverName, axlPointer user_data)

Handler definition for those functions that allows to locate the private key file to be used while enabling TLS support.

See MyQttTlsCertificateFileLocator handler for more information. This handler allows to define how is located the private key file used for the session TLS activation.

ctxThe context where the operation is taking place.
connectionThe connection where the operation is taking place.
serverNameThe serverName was has been announced.
user_dataOptional reference to user data configured at myqtt_tls_listener_set_certificate_handlers
A newly allocated value containing the path to the private key file or the private key content to be used.