pam_strerror

Name

pam_strerror -- returns a string describing the PAM error

Synopsis

#include <security/pam_appl.h>

extern int pam_strerror(pam_handle_t *pamh, int errnum);

Description

pam_strerror returns a string describing the PAM error associated with errnum.

Return Value

On success, this function returns a description of the indicated error. If the error is not recognized, a string beginning with Unknown Linux-PAM error is returned. The application should not free or modify this string. This returned string will not be translated.