2 .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GSS_EXPORT_NAME 3GSS "Jan 14, 2003"
8 gss_export_name \- convert a mechanism name to export form
12 \fBcc\fR [\fIflag \&.\|.\|.\fR] \fIfile\fR\&.\|.\|. \fB-lgss\fR [\fIlibrary \&.\|.\|.\fR]
13 #include <gssapi/gssapi.h>
15 \fBOM_uint32\fR \fBgss_export_name\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
16 \fBconst gss_name_t\fR \fIinput_name\fR,\fBgss_buffer_t\fR \fIexported_name\fR);
22 The \fBgss_export_name()\fR function allows a \fBGSS-API\fR internal name to be
23 converted into a mechanism-specific name. The function produces a canonical
24 contiguous string representation of a mechanism name, suitable for direct
25 comparison, with \fBmemory\fR(3C), or for use in authorization functions,
26 matching entries in an access-control list. The \fIinput_name\fR parameter
27 must specify a valid mechanism name, that is, an internal name generated by
28 \fBgss_accept_sec_context\fR(3GSS) or by \fBgss_canonicalize_name\fR(3GSS).
32 The parameter descriptions for \fBgss_export_name()\fR follow:
36 \fB\fIminor_status\fR\fR
39 A mechanism-specific status code.
45 \fB\fIinput_name\fR\fR
48 The mechanism name to be exported.
54 \fB\fIexported_name\fR\fR
57 The canonical contiguous string form of \fIinput_name\fR. Storage associated
58 with this string must freed by the application after use with
59 \fBgss_release_buffer\fR(3GSS).
65 The \fBgss_export_name()\fR function may return the following status codes:
69 \fB\fBGSS_S_COMPLETE\fR\fR
72 Successful completion.
78 \fB\fBGSS_S_NAME_NOT_MN\fR\fR
81 The provided internal name was not a mechanism name.
87 \fB\fBGSS_S_FAILURE\fR\fR
90 The underlying mechanism detected an error for which no specific \fBGSS\fR
91 status code is defined. The mechanism-specific status code reported by means
92 of the \fIminor_status\fR parameter details the error condition.
98 See \fBattributes\fR(5) for descriptions of the following attributes:
106 ATTRIBUTE TYPE ATTRIBUTE VALUE
114 \fBgss_accept_sec_context\fR(3GSS), \fBgss_canonicalize_name\fR(3GSS),
115 \fBgss_release_buffer\fR(3GSS)\fBmemory\fR(3C), \fBattributes\fR(5)
118 \fISolaris Security for Developers Guide\fR