2 .\" Copyright (c) 2000, 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_CANONICALIZE_NAME 3GSS "Jan 14, 2003"
8 gss_canonicalize_name \- convert an internal name to a mechanism name
12 \fBcc\fR [\fIflag \&.\|.\|.\fR] \fIfile\fR\&.\|.\|. \fB-lgss\fR [\fIlibrary \&.\|.\|.\fR]
13 #include <gssapi/gssapi.h>
15 \fBOM_uint32\fR \fBgss_canonicalize_name\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
16 \fBconst gss_name_t\fR \fIinput_name\fR,\fBconst gss_OID\fR \fImech_type\fR,
17 \fBgss_name_t *\fR\fIoutput_name\fR);
23 The \fBgss_canonicalize_name()\fR function generates a canonical mechanism name
24 from an arbitrary internal name. The mechanism name is the name that would be
25 returned to a context acceptor on successful authentication of a context where
26 the initiator used the \fIinput_name\fR in a successful call to
27 \fBgss_acquire_cred\fR(3GSS), specifying an OID set containing \fImech_type\fR
28 as its only member, followed by a call to \fBgss_init_sec_context\fR(3GSS),
29 specifying \fImech_type\fR as the authentication mechanism.
33 The parameter descriptions for \fBgss_canonicalize_name()\fR follow:
37 \fB\fIminor_status\fR\fR
40 Mechanism-specific status code.
46 \fB\fIinput_name\fR\fR
49 The name for which a canonical form is desired.
58 The authentication mechanism for which the canonical form of the name is
59 desired. The desired mechanism must be specified explicitly; no default is
66 \fB\fIoutput_name\fR\fR
69 The resultant canonical name. Storage associated with this name must be freed
70 by the application after use with a call to \fBgss_release_name\fR(3GSS).
76 The \fBgss_canonicalize_name()\fR function may return the status codes:
80 \fB\fBGSS_S_COMPLETE\fR\fR
83 Successful completion.
89 \fB\fBGSS_S_BAD_MECH\fR\fR
92 The identified mechanism is not supported.
98 \fB\fBGSS_S_BAD_NAMETYPE\fR\fR
101 The provided internal name contains no elements that could be processed by the
108 \fB\fBGSS_S_BAD_NAME\fR\fR
111 The provided internal name was ill-formed.
117 \fB\fBGSS_S_FAILURE\fR\fR
120 The underlying mechanism detected an error for which no specific \fBGSS\fR
121 status code is defined. The mechanism-specific status code reported by means
122 of the \fIminor_status\fR parameter details the error condition.
128 See \fBattributes\fR(5) for descriptions of the following attributes:
136 ATTRIBUTE TYPE ATTRIBUTE VALUE
144 \fBgss_acquire_cred\fR(3GSS), \fBgss_init_sec_context\fR(3GSS),
145 \fBgss_release_name\fR(3GSS), \fBattributes\fR(5)
148 \fISolaris Security for Developers Guide\fR