components/krb5/Solaris/man/gss_import_name.3gss
author Will Fiveash <will.fiveash@oracle.com>
Wed, 24 Feb 2016 10:43:57 -0600
changeset 5490 9bf0bc57423a
child 7820 a2b9a7de9e1a
permissions -rw-r--r--
PSARC/2015/144 Kerberos 1.13 Delivery to Userland 19153034 Add MIT Kerberos to the Userland Consolidation

'\" te
.\" Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
.TH gss_import_name 3GSS "22 Aug 2011" "SunOS 5.12" "Generic Security Services API Library Functions"
.SH NAME
gss_import_name \- convert a contiguous string name to GSS_API internal format
.SH SYNOPSIS
.LP
.nf
\fBcc\fR [\fIflag \&.\|.\|.\fR]  \fIfile\fR\&.\|.\|. \fB-lgss\fR [\fIlibrary \&.\|.\|.\fR] 
#include <gssapi/gssapi.h>

\fBOM_uint32\fR \fBgss_import_name\fR(\fBOM_uint32 *\fR \fIminor_status\fR,
     \fBconst gss_buffer_t\fR \fIinput_name_buffer\fR, \fBconst gss_OID\fR \fIinput_name_type\fR,
     \fBgss_name_t *\fR\fIoutput_name\fR);
.fi

.SH DESCRIPTION
.sp
.LP
The \fBgss_import_name()\fR function converts a contiguous string name to internal form. In general, the internal name returned by means of the \fIoutput_name\fR parameter will not be a mechanism name; the exception to this is if the \fIinput_name_type\fR indicates that the contiguous string provided by means of the \fIinput_name_buffer\fR parameter is of type \fBGSS_C_NT_EXPORT_NAME\fR, in which case, the returned internal name will be a mechanism name for the mechanism that exported the name.
.SH PARAMETERS
.sp
.LP
The parameter descriptions for \fBgss_import_name()\fR follow:
.sp
.ne 2
.mk
.na
\fB\fIminor_status\fR\fR
.ad
.RS 21n
.rt  
Status code returned by the underlying mechanism.
.RE

.sp
.ne 2
.mk
.na
\fB\fIinput_name_buffer\fR\fR
.ad
.RS 21n
.rt  
The \fBgss_buffer_desc\fR structure containing the name to be imported.
.RE

.sp
.ne 2
.mk
.na
\fB\fIinput_name_type\fR\fR
.ad
.RS 21n
.rt  
A \fBgss_OID\fR that specifies the format that the \fIinput_name_buffer\fR is in.
.RE

.sp
.ne 2
.mk
.na
\fB\fIoutput_name\fR\fR
.ad
.RS 21n
.rt  
The \fBgss_name_t\fR structure to receive the returned name in internal form. Storage associated with this name must be freed by the application after use with a call to \fBgss_release_name()\fR.
.RE

.SH ERRORS
.sp
.LP
The \fBgss_import_name()\fR function may return the following status codes:
.sp
.ne 2
.mk
.na
\fB\fBGSS_S_COMPLETE\fR\fR
.ad
.RS 22n
.rt  
The \fBgss_import_name()\fR function completed successfully.
.RE

.sp
.ne 2
.mk
.na
\fB\fBGSS_S_BAD_NAMETYPE\fR\fR
.ad
.RS 22n
.rt  
The \fIinput_name_type\fR was unrecognized.
.RE

.sp
.ne 2
.mk
.na
\fB\fBGSS_S_BAD_NAME\fR\fR
.ad
.RS 22n
.rt  
The \fIinput_name\fR parameter could not be interpreted as a name of the specified type.
.RE

.sp
.ne 2
.mk
.na
\fB\fBGSS_S_BAD_MECH\fR\fR
.ad
.RS 22n
.rt  
The \fIinput_name_type\fR was \fBGSS_C_NT_EXPORT_NAME\fR, but the mechanism contained within the \fIinput_name\fR is not supported.
.RE

.sp
.ne 2
.mk
.na
\fB\fBGSS_S_FAILURE\fR\fR
.ad
.RS 22n
.rt  
The underlying mechanism detected an error for which no specific \fBGSS\fR status code is defined.  The mechanism-specific status code reported by means of the \fIminor_status\fR parameter details the error condition.
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
MT-LevelSafe
.TE

.SH SEE ALSO
.sp
.LP
\fBgss_release_buffer\fR(3GSS), \fBattributes\fR(5)
.sp
.LP