[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ConnAuthPasswd

Overview

Return password

Syntax

    char *Ns_ConnAuthPasswd(
    Ns_Conn *conn
    );

Description

The Ns_ConnAuthPasswd function returns the decoded password from the header information associated with the connection.

Examples

    /* 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);
    	}
    }

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.