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_WRAP_SIZE_LIMIT 3GSS "Jan 15, 2003"
8 gss_wrap_size_limit \- allow application to determine maximum message size with
9 resulting output token of a specified maximum size
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lgss\fR [ \fIlibrary\fR... ]
14 #include <gssapi/gssapi.h>
16 \fBOM_uint32\fR \fBgss_process_context_token\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
17 \fBconst gss_ctx_id_t\fR \fIcontext_handle\fR, \fBint\fR \fIconf_req_flag\fR,
18 \fBgss_qop_t\fR \fIqop_req\fR, \fBOM_uint32\fR \fIreq_output_size\fR,
19 \fBOM_uint32 *\fR\fImax_input_size\fR);
25 The \fBgss_wrap_size_limit()\fR function allows an application to determine the
26 maximum message size that, if presented to \fBgss_wrap()\fR with the same
27 \fIconf_req_flag\fR and \fIqop_req\fR parameters, results in an output token
28 containing no more than \fIreq_output_size\fR bytes. This call is intended for
29 use by applications that communicate over protocols that impose a maximum
30 message size. It enables the application to fragment messages prior to applying
31 protection. The \fBGSS-API\fR detects invalid \fBQOP\fR values when
32 \fBgss_wrap_size_limit()\fR is called. This routine guarantees only a maximum
33 message size, not the availability of specific \fBQOP\fR values for message
37 Successful completion of \fBgss_wrap_size_limit()\fR does not guarantee that
38 \fBgss_wrap()\fR will be able to protect a message of length
39 \fImax_input_size\fR bytes, since this ability might depend on the availability
40 of system resources at the time that \fBgss_wrap()\fR is called.
44 The parameter descriptions for \fBgss_wrap_size_limit()\fR are as follows:
48 \fB\fIminor_status\fR\fR
51 A mechanism-specific status code.
57 \fB\fIcontext_handle\fR\fR
60 A handle that refers to the security over which the messages will be sent.
66 \fB\fIconf_req_flag\fR\fR
69 Indicates whether \fBgss_wrap()\fR will be asked to apply confidential
70 protection in addition to integrity protection. See \fBgss_wrap\fR(3GSS) for
80 Indicates the level of protection that \fBgss_wrap()\fR will be asked to
81 provide. See \fBgss_wrap\fR(3GSS) for more details.
87 \fB\fIreq_output_size\fR\fR
90 The desired maximum size for tokens emitted by \fBgss_wrap()\fR.
96 \fB\fImax_input_size\fR\fR
99 The maximum input message size that can be presented to \fBgss_wrap()\fR to
100 guarantee that the emitted token will be no larger than \fIreq_output_size\fR
107 \fBgss_wrap_size_limit()\fR returns one of the following status codes:
111 \fB\fBGSS_S_COMPLETE\fR\fR
114 Successful completion.
120 \fB\fBGSS_S_NO_CONTEXT\fR\fR
123 The referenced context could not be accessed.
129 \fB\fBGSS_S_CONTEXT_EXPIRED\fR\fR
132 The context has expired.
138 \fB\fBGSS_S_BAD_QOP\fR\fR
141 The specified \fBQOP\fR is not supported by the mechanism.
147 \fB\fBGSS_S_FAILURE\fR\fR
150 The underlying mechanism detected an error for which no specific \fBGSS\fR
151 status code is defined. The mechanism-specific status code reported by means
152 of the \fIminor_status\fR parameter details the error condition.
158 See \fBattributes\fR(5) for descriptions of the following attributes:
166 ATTRIBUTE TYPE ATTRIBUTE VALUE
174 \fBgss_wrap\fR(3GSS), \fBattributes\fR(5)
177 \fISolaris Security for Developers Guide\fR