The
pam_setcred function manages the application's credentials.
The
flags argument is the binary or of zero or more of the following values:
PAM_SILENT
Do not emit any messages.
PAM_ESTABLISH_CRED
Establish the credentials of the target user.
PAM_DELETE_CRED
Revoke all established credentials.
PAM_REINITIALIZE_CRED
Fully reinitialise credentials.
PAM_REFRESH_CRED
Refresh credentials.
The latter four are mutually exclusive.
If any other bits are set,
pam_setcred will return
PAM_SYMBOL_ERR.