summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi/dsp_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/gssapi/dsp_name.c')
-rw-r--r--src/lib/gssapi/dsp_name.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/lib/gssapi/dsp_name.c b/src/lib/gssapi/dsp_name.c
new file mode 100644
index 000000000..cdce73751
--- /dev/null
+++ b/src/lib/gssapi/dsp_name.c
@@ -0,0 +1,30 @@
+/*
+ * dsp_name.c --- display_name
+ *
+ * $Source$
+ * $Author$
+ * $Header$
+ *
+ * Copyright 1991 by the Massachusetts Institute of Technology.
+ * All Rights Reserved.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/copyright.h>.
+ *
+ */
+
+#include <gssapi.h>
+
+OM_uint32 gss_display_name(minor_status, input_name, output_name_buffer)
+ OM_uint32 *minor_status;
+ gss_name_t input_name;
+ gss_buffer_t output_name_buffer;
+{
+ char *str;
+
+ if (*minor_status = krb5_unparse_name(input_name, &str))
+ return(gss_make_re(GSS_RE_FAILURE));
+ output_name_buffer->value = str;
+ output_name_buffer->length = strlen(str);
+ return(GSS_S_COMPLETE);
+}