Initialize the
Linux-PAM
library. Identifying the application with a particular
service
name. The
username
can take the value
NULL,
if not known at the time the interface is initialized. The
conversation structure is passed to the library via the
conv
argument. (For a complete description of this and other structures
the reader is directed to the more verbose
Linux-PAM
application developers' guide). Upon successful initialization, an
opaque pointer-handle for future access to the library is returned
through the contents of the
pamh_p
pointer.
pam_end
Terminate the
Linux-PAM
library. The service application associated with the
pamh
handle, is terminated. The argument,
pam_status,
passes the value most recently returned to the application from the
library; it indicates the manner in which the library should be
shutdown. Besides carrying a return value, this argument may be
logically OR'd with
PAM_DATA_SILENT
to indicate that the module should not treat the call too
seriously. It is generally used to indicate that the current closing
of the library is in a
fork(2)ed
process, and that the parent will take care of cleaning up things that
exist outside of the current process space (files etc.).