2 .\" Copyright (C) 2005, 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_IMPORT_NAME 3GSS "Jun 30, 2005"
8 gss_import_name \- convert a contiguous string name to GSS_API internal format
12 \fBcc\fR [\fIflag \&.\|.\|.\fR] \fIfile\fR\&.\|.\|. \fB-lgss\fR [\fIlibrary \&.\|.\|.\fR]
13 #include <gssapi/gssapi.h>
15 \fBOM_uint32\fR \fBgss_import_name\fR(\fBOM_uint32 *\fR \fIminor_status\fR,
16 \fBconst gss_buffer_t\fR \fIinput_name_buffer\fR, \fBconst gss_OID\fR \fIinput_name_type\fR,
17 \fBgss_name_t *\fR\fIoutput_name\fR);
23 The \fBgss_import_name()\fR function converts a contiguous string name to
24 internal form. In general, the internal name returned by means of the
25 \fIoutput_name\fR parameter will not be a mechanism name; the exception to this
26 is if the \fIinput_name_type\fR indicates that the contiguous string provided
27 by means of the \fIinput_name_buffer\fR parameter is of type
28 \fBGSS_C_NT_EXPORT_NAME\fR, in which case, the returned internal name will be a
29 mechanism name for the mechanism that exported the name.
33 The parameter descriptions for \fBgss_import_name()\fR follow:
37 \fB\fIminor_status\fR\fR
40 Status code returned by the underlying mechanism.
46 \fB\fIinput_name_buffer\fR\fR
49 The \fBgss_buffer_desc\fR structure containing the name to be imported.
55 \fB\fIinput_name_type\fR\fR
58 A \fBgss_OID\fR that specifies the format that the \fIinput_name_buffer\fR is
65 \fB\fIoutput_name\fR\fR
68 The \fBgss_name_t\fR structure to receive the returned name in internal form.
69 Storage associated with this name must be freed by the application after use
70 with a call to \fBgss_release_name()\fR.
76 The \fBgss_import_name()\fR function may return the following status codes:
80 \fB\fBGSS_S_COMPLETE\fR\fR
83 The \fBgss_import_name()\fR function completed successfully.
89 \fB\fBGSS_S_BAD_NAMETYPE\fR\fR
92 The \fIinput_name_type\fR was unrecognized.
98 \fB\fBGSS_S_BAD_NAME\fR\fR
101 The \fIinput_name\fR parameter could not be interpreted as a name of the
108 \fB\fBGSS_S_BAD_MECH\fR\fR
111 The \fIinput_name_type\fR was \fBGSS_C_NT_EXPORT_NAME\fR, but the mechanism
112 contained within the \fIinput_name\fR is not supported.
118 \fB\fBGSS_S_FAILURE\fR\fR
121 The underlying mechanism detected an error for which no specific \fBGSS\fR
122 status code is defined. The mechanism-specific status code reported by means
123 of the \fIminor_status\fR parameter details the error condition.
129 See \fBattributes\fR(5) for descriptions of the following attributes:
137 ATTRIBUTE TYPE ATTRIBUTE VALUE
145 \fBgss_release_buffer\fR(3GSS), \fBattributes\fR(5)
148 \fISolaris Security for Developers Guide\fR