1pam_strerror(3PAM) PAM Library Functions pam_strerror(3PAM)
2
3
4
6 pam_strerror - get PAM error message string
7
9 cc [ flag... ] file... -lpam [ library... ]
10 #include <security/pam_appl.h>
11
12
13
14 const char *pam_strerror(pam_handle_t*pamh, int errnum);
15
16
18 The pam_strerror() function maps the PAM error number in errnum to a
19 PAM error message string, and returns a pointer to that string. The
20 application should not free or modify the string returned.
21
22
23 The pamh argument is the PAM handle obtained by a prior call to
24 pam_start(). If pam_start() returns an error, a null PAM handle should
25 be passed.
26
28 The pam_strerror() function returns the string "Unknown error" if
29 errnum is out-of-range.
30
32 See attributes(5) for description of the following attributes:
33
34
35
36
37 ┌─────────────────────────────┬─────────────────────────────┐
38 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
39 ├─────────────────────────────┼─────────────────────────────┤
40 │Interface Stability │ Stable │
41 ├─────────────────────────────┼─────────────────────────────┤
42 │MT-Level │MT-Safe with exceptions │
43 └─────────────────────────────┴─────────────────────────────┘
44
46 pam(3PAM), pam_start(3PAM), attributes(5)
47
49 The interfaces in libpam are MT-Safe only if each thread within the
50 multithreaded application uses its own PAM handle.
51
52
53
54SunOS 5.11 9 Jul 2003 pam_strerror(3PAM)