summaryrefslogtreecommitdiffstats
path: root/contrib/openpam/lib/pam_setcred.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/openpam/lib/pam_setcred.c')
-rw-r--r--contrib/openpam/lib/pam_setcred.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/openpam/lib/pam_setcred.c b/contrib/openpam/lib/pam_setcred.c
index 0ea10ff..1a78498 100644
--- a/contrib/openpam/lib/pam_setcred.c
+++ b/contrib/openpam/lib/pam_setcred.c
@@ -54,3 +54,25 @@ pam_setcred(pam_handle_t *pamh,
return (openpam_dispatch(pamh, PAM_SM_SETCRED, flags));
}
+
+/*
+ * Error codes:
+ *
+ * =openpam_dispatch
+ * =pam_sm_setcred
+ * !PAM_IGNORE
+ */
+
+/**
+ * The =pam_setcred function manages the application's credentials.
+ * The operation to perform is specified by the =flags argument:
+ *
+ * PAM_ESTABLISH_CRED:
+ * Establish the credentials of the target user.
+ * PAM_DELETE_CRED:
+ * Revoke all established credentials.
+ * PAM_REINITIALISE_CRED:
+ * Fully reinitialise credentials.
+ * PAM_REFRESH_CRED:
+ * Refresh credentials.
+ */
OpenPOWER on IntegriCloud