summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/generic/gssapi_ext.h
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2011-09-21 18:40:43 +0000
committerSam Hartman <hartmans@mit.edu>2011-09-21 18:40:43 +0000
commitfe12e6f6da58abc3cc3e2d30d3925259ad1fbf6a (patch)
tree1ca1637c6fe7d81691bc0ce0c30e77d2cb5a0fc5 /src/lib/gssapi/generic/gssapi_ext.h
parentd168c25d80fb6fe2d4c272252d2fb41a2a9bb54e (diff)
downloadkrb5-fe12e6f6da58abc3cc3e2d30d3925259ad1fbf6a.tar.gz
krb5-fe12e6f6da58abc3cc3e2d30d3925259ad1fbf6a.tar.xz
krb5-fe12e6f6da58abc3cc3e2d30d3925259ad1fbf6a.zip
* New implementation to map a gss name to localname
* Write gss_pname_to_uid in terms of gss_localname; suppress on win32 * Add test for gss_pname_to_uid indirectly testing gss_localname * gss_localname is the SPI, not gss_pname_to_uid * fix some const gss_OID->gss_const_oid Signed-off-by: Sam Hartman <hartmans@painless-security.com> gss_localname: map gss name to localname git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25222 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/gssapi/generic/gssapi_ext.h')
-rw-r--r--src/lib/gssapi/generic/gssapi_ext.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/gssapi/generic/gssapi_ext.h b/src/lib/gssapi/generic/gssapi_ext.h
index 174bef670..07f0c688e 100644
--- a/src/lib/gssapi/generic/gssapi_ext.h
+++ b/src/lib/gssapi/generic/gssapi_ext.h
@@ -34,12 +34,31 @@ extern "C" {
/*
* Solaris extensions
*/
+#ifndef _WIN32
OM_uint32 KRB5_CALLCONV
gss_pname_to_uid
(OM_uint32 *minor,
const gss_name_t name,
const gss_OID mech_type,
uid_t *uidOut);
+#endif
+
+ /**
+ * Provides a platform-specific name for a GSSAPI name as
+ * interpreted by a given mechanism
+ * @param name The gss name resulting from accept_sec_context
+ * @param mech_type The mechanism that will be asked to map @a name to a local name
+ * @param localname pointer to a buffer_desc allocated by the caller
+ * that will be filled in with the local name on successful completion.
+ */
+OM_uint32 KRB5_CALLCONV
+gss_localname
+ (OM_uint32 *minor,
+ const gss_name_t name,
+ gss_const_OID mech_type,
+ gss_buffer_t localname);
+
+
/** Determine whether a mechanism name is authorized to act as a username.
*