pam_end

Name

pam_end -- terminate the use of the PAM library

Synopsis

#include <security/pam_appl.h>

int pam_end(pam_handle_t * pamh, int pam_status);

Description

pam_end() terminates use of the PAM library. On success, the contents of *pamh are no longer valid, and all memory associated with it is invalid.

Normally, pam_status is passed the value PAM_SUCCESS, but in the event of an unsuccessful service application, the appropriate PAM error return value should be used.

Return Value

PAM_SUCCESS 

Success.

Note: Errors may be translated to text with pam_strerror().