summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2011-04-10 16:37:01 +0000
committerGreg Hudson <ghudson@mit.edu>2011-04-10 16:37:01 +0000
commitfaaf900048ddc1ddaa8ccac6c8bddae920e5262d (patch)
tree22d949c25cb556b4ffb410575e51cad0a4926fad /src
parent8b62abaa08ba814ce45bde12d8798d3a6e58c209 (diff)
downloadkrb5-faaf900048ddc1ddaa8ccac6c8bddae920e5262d.tar.gz
krb5-faaf900048ddc1ddaa8ccac6c8bddae920e5262d.tar.xz
krb5-faaf900048ddc1ddaa8ccac6c8bddae920e5262d.zip
Add Doxygen markup for gss_userok() and gss_authorize_localname()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24870 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/gssapi/generic/gssapi_ext.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/lib/gssapi/generic/gssapi_ext.h b/src/lib/gssapi/generic/gssapi_ext.h
index c61955e88..174bef670 100644
--- a/src/lib/gssapi/generic/gssapi_ext.h
+++ b/src/lib/gssapi/generic/gssapi_ext.h
@@ -41,10 +41,39 @@ gss_pname_to_uid
const gss_OID mech_type,
uid_t *uidOut);
+/** Determine whether a mechanism name is authorized to act as a username.
+ *
+ * @param [in] name Mechanism name
+ * @param [in] username System username
+ *
+ * This is a simple wrapper around gss_authorize_localname(). It only supports
+ * system usernames as local names, and cannot distinguish between lack of
+ * authorization and other errors.
+ *
+ * @retval 1 @a name is authorized to act as @a username
+ * @retval 0 @a name is not authorized or an error occurred
+ */
int KRB5_CALLCONV
gss_userok(const gss_name_t name,
const char *username);
+/** Determine whether a mechanism name is authorized to act as a local name.
+ *
+ * @param [out] minor Minor status code
+ * @param [in] name Mechanism name
+ * @param [in] user Local name
+ *
+ * @a name is a mechanism name, typically the result of a completed
+ * gss_accept_sec_context(). @a user is an internal name representing a local
+ * name, such as a name imported by gss_import_name() with an @a
+ * input_name_type of @c GSS_C_NT_USER_NAME.
+ *
+ * @return Return GSS_S_COMPLETE if @a name is authorized to act as @a user,
+ * GSS_S_UNAUTHORIZED if not, or an appropriate GSS error code if an error
+ * occured.
+ *
+ * @sa gss_userok
+ */
OM_uint32 KRB5_CALLCONV
gss_authorize_localname(OM_uint32 *minor,
const gss_name_t name,