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_IMPORT_SEC_CONTEXT 3GSS "Jan 15, 2003"
8 gss_import_sec_context \- import security context established by another
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lgss\fR [ \fIlibrary\fR... ]
14 #include <gssapi/gssapi.h>
16 \fBOM_uint32\fR \fBgss_import_sec_context\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
17 \fBconst gss_buffer_t\fR \fIinterprocess_token\fR,\fBgss_ctx_id_t *\fR\fIcontext_handle\fR);
23 The \fBgss_import_sec_context()\fR function allows a process to import a
24 security context established by another process. A given interprocess token can
25 be imported only once. See \fBgss_export_sec_context\fR(3GSS).
29 The parameter descriptions for \fBgss_import_sec_context()\fR are as follows:
33 \fB\fIminor_status\fR\fR
36 A mechanism-specific status code.
42 \fB\fIinterprocess_token\fR\fR
45 Token received from exporting process.
51 \fB\fIcontext_handle\fR\fR
54 Context handle of newly reactivated context. Resources associated with this
55 context handle must be released by the application after use with a call to
56 \fBgss_delete_sec_context\fR(3GSS).
62 \fBgss_import_sec_context()\fR returns one of the following status codes:
66 \fB\fBGSS_S_COMPLETE\fR\fR
69 Successful completion.
75 \fB\fBGSS_S_NO_CONTEXT\fR\fR
78 The token did not contain a valid context reference.
84 \fB\fBGSS_S_DEFECTIVE_TOKEN\fR\fR
87 The token was invalid.
93 \fB\fBGSS_S_UNAVAILABLE\fR\fR
96 The operation is unavailable.
102 \fB\fBGSS_S_UNAUTHORIZED\fR\fR
105 Local policy prevents the import of this context by the current process.
111 \fB\fBGSS_S_FAILURE\fR\fR
114 The underlying mechanism detected an error for which no specific \fBGSS\fR
115 status code is defined. The mechanism-specific status code reported by means
116 of the \fIminor_status\fR parameter details the error condition.
122 See \fBattributes\fR(5) for descriptions of the following attributes:
130 ATTRIBUTE TYPE ATTRIBUTE VALUE
138 \fBgss_accept_sec_context\fR(3GSS), \fBgss_context_time\fR(3GSS),
139 \fBgss_delete_sec_context\fR(3GSS), \fBgss_export_sec_context\fR(3GSS),
140 \fBgss_init_sec_context\fR(3GSS), \fBgss_inquire_context\fR(3GSS),
141 \fBgss_process_context_token\fR(3GSS), \fBgss_wrap_size_limit\fR(3GSS),
145 \fISolaris Security for Developers Guide\fR