char *Ns_ConnAuthPasswd( Ns_Conn *conn );
The Ns_ConnAuthPasswd function returns the decoded password from the header information associated with the connection.
/* PassTrace - A server trace to log users and passwords. */ void PassTrace(void *ctx, Ns_Conn *conn) { char *user; char *pass; user = Ns_ConnAuthUser(conn); pass = Ns_ConnAuthPasswd(conn); if (user != NULL && pass != NULL) { Ns_Log(Notice, "User: %s Password: %s", user, pass); } }