FreeBSD/contrib/openpam/bin/pamtest/pamtest.c
/*
 * Retrieve and list the PAM environment variables
 */
Retrieve and list the PAM environment variables
Retrieve and list the PAM environment variables
static int
pt_listenv(void)
{
	char **pam_envlist, **pam_env;
	if ((pam_envlist = pam_getenvlist(pamh)) == NULL ||
	    *pam_envlist == NULL) {
		pt_verbose("no environment variables.");
	} else {
		pt_verbose("environment variables:");
		for (pam_env = pam_envlist; *pam_env != NULL; ++pam_env) {
			printf(" %s\n", *pam_env);
			free(*pam_env);
		}
	}
	free(pam_envlist);
	return (PAM_SUCCESS);
}
static int pt_listenv ( void ) { char * * pam_envlist , * * pam_env ; if ( ( pam_envlist = pam_getenvlist ( pamh ) ) == NULL || * pam_envlist == NULL ) { pt_verbose ( " " ) ; } else { pt_verbose ( " " ) ; for ( pam_env = pam_envlist ; * pam_env != NULL ; ++ pam_env ) { printf ( " \n " , * pam_env ) ; free ( * pam_env ) ; } } free ( pam_envlist ) ; return ( PAM_SUCCESS ) ; }
Retrieve and list the PAM environment variables
Retrieve and list the PAM environment variables