typedef gchar*(* VortexSaslAuthCramMd5)(VortexConnection *connection, const gchar *auth_id)
 

Asynchronous notification to enable user space code to validate SASL CRAM MD5 request received.

Inside this function, programmer should implement password lookup for the given user (auth_id) and return a copy it the clear text password.

Functions using this handler are:

Parameters:
connection The connection where the SASL notification was received
auth_id User id to authenticate.
Returns:
The password the given auth_id have or NULL if the request should be denied. Password returned should be the plain one. Later SASL engine will perform hashing operations over it to be compared with the hash value received from the client side. Returned value should be dynamically allocated. Later, Vortex will unref it.