/* $Header: /home/morgan/pam/Linux-PAM-0.50/libpam_misc/RCS/pam_misc.h,v 1.1 1996/07/06 19:31:38 morgan Exp $ */

/* $Log: pam_misc.h,v $
 * Revision 1.1  1996/07/06 19:31:38  morgan
 * Initial revision
 *
 * Revision 1.1  1996/07/06 19:16:30  morgan
 * Initial revision
 *
 */

#ifndef __PAMMISC_H
#define __PAMMISC_H

#include <security/pam_appl.h>

/*
 * a password protection minded #define ... use for purging the memory
 * associated with a former password
 */

#define _pam_overwrite(x) \
{ \
     register char *xx; \
     if ((xx=x)) \
	  while (*xx) \
	       *xx++ = '\0'; \
}

/* functions defined in pam-misc.* libraries */

extern char *xstrdup( const char *s );
extern int misc_conv(int num_msg, const struct pam_message **msgm,
		     struct pam_response **response, void *appdata_ptr);

#endif

 
	
