#define AUTH_ID_FROM_CONN (   conn)    (vortex_sasl_is_authenticated (conn) ? vortex_sasl_get_propertie (conn, VORTEX_SASL_AUTH_ID) : NULL)

Convenience macro that allows to get the auth Id for the connection provided.

The macro also check if the connection was authenticated (by calling to vortex_sasl_is_authenticated). The macro doesn't check the sasl method used or if it is appropiated to your context. You must use other means to check/enforce SASL method allowed.

See also: AUTH_ID_FROM_CONN.

Parameters
connThe connection to be checked for its auth id associated.
Returns
The auth id or NULL if it fails.