pam_end3
Terminate the pam transaction
Usage
#include <sys/types.h>
#include <security/pam_appl.h>
int
pam_end(pam_handle_t *pamh, int status);
Overview
The pam_end() function terminates a PAM transaction and destroys the corresponding PAM context, releasing all resources allocated to it.
The status argument should be set to the error code returned by the last API call before the call to pam_end().
Return values
The pam_end() function returns one of the following values:
- [PAM_SUCCESS]
-
Success.
- [PAM_BAD_HANDLE]
-
Invalid PAM handle.
Releases
76 releases since FreeBSD 3.1-RELEASE; the text changed 17 times.