1c0b9f4feSDoug Rabson.\" -*- nroff -*- 2c0b9f4feSDoug Rabson.\" 3c0b9f4feSDoug Rabson.\" Copyright (c) 2005 Doug Rabson 4c0b9f4feSDoug Rabson.\" All rights reserved. 5c0b9f4feSDoug Rabson.\" 6c0b9f4feSDoug Rabson.\" Redistribution and use in source and binary forms, with or without 7c0b9f4feSDoug Rabson.\" modification, are permitted provided that the following conditions 8c0b9f4feSDoug Rabson.\" are met: 9c0b9f4feSDoug Rabson.\" 1. Redistributions of source code must retain the above copyright 10c0b9f4feSDoug Rabson.\" notice, this list of conditions and the following disclaimer. 11c0b9f4feSDoug Rabson.\" 2. Redistributions in binary form must reproduce the above copyright 12c0b9f4feSDoug Rabson.\" notice, this list of conditions and the following disclaimer in the 13c0b9f4feSDoug Rabson.\" documentation and/or other materials provided with the distribution. 14c0b9f4feSDoug Rabson.\" 15c0b9f4feSDoug Rabson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16c0b9f4feSDoug Rabson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17c0b9f4feSDoug Rabson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18c0b9f4feSDoug Rabson.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19c0b9f4feSDoug Rabson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20c0b9f4feSDoug Rabson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21c0b9f4feSDoug Rabson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22c0b9f4feSDoug Rabson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23c0b9f4feSDoug Rabson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24c0b9f4feSDoug Rabson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25c0b9f4feSDoug Rabson.\" SUCH DAMAGE. 26c0b9f4feSDoug Rabson.\" 27c0b9f4feSDoug Rabson.\" The following commands are required for all man pages. 28d76ba3efSGavin Atkinson.Dd January 26, 2010 29c0b9f4feSDoug Rabson.Dt GSS_WRAP_SIZE_LIMIT 3 PRM 30aa12cea2SUlrich Spörlein.Os 31c0b9f4feSDoug Rabson.Sh NAME 32c0b9f4feSDoug Rabson.Nm gss_wrap_size_limit 33c0b9f4feSDoug Rabson.Nd Determine maximum message sizes 34c0b9f4feSDoug Rabson.\" This next command is for sections 2 and 3 only. 35c0b9f4feSDoug Rabson.\" .Sh LIBRARY 36c0b9f4feSDoug Rabson.Sh SYNOPSIS 37c0b9f4feSDoug Rabson.In "gssapi/gssapi.h" 38c0b9f4feSDoug Rabson.Ft OM_uint32 39c0b9f4feSDoug Rabson.Fo gss_wrap_size_limit 40c0b9f4feSDoug Rabson.Fa "OM_uint32 *minor_status" 41c0b9f4feSDoug Rabson.Fa "const gss_ctx_id_t context_handle" 42c0b9f4feSDoug Rabson.Fa "int conf_req_flag" 43c0b9f4feSDoug Rabson.Fa "gss_qop_t qop_req" 44c0b9f4feSDoug Rabson.Fa "OM_uint32 req_output_size" 45c0b9f4feSDoug Rabson.Fa "OM_uint32 *max_input_size" 46c0b9f4feSDoug Rabson.Fc 47c0b9f4feSDoug Rabson.Sh DESCRIPTION 48c0b9f4feSDoug RabsonAllows an application to determine the maximum message size that, 49c0b9f4feSDoug Rabsonif presented to 50c0b9f4feSDoug Rabson.Xr gss_wrap 3 51c0b9f4feSDoug Rabsonwith the same 52c0b9f4feSDoug Rabson.Dv conf_req_flag 53c0b9f4feSDoug Rabsonand 54c0b9f4feSDoug Rabson.Dv qop_req 55c0b9f4feSDoug Rabsonparameters, 56c0b9f4feSDoug Rabsonwill result in an output token containing no more than 57c0b9f4feSDoug Rabson.Dv req_output_size 58c0b9f4feSDoug Rabsonbytes. 59c0b9f4feSDoug Rabson.Pp 60c0b9f4feSDoug RabsonThis call is intended for use by applications that 61c0b9f4feSDoug Rabsoncommunicate over protocols that impose a maximum message size. 62c0b9f4feSDoug RabsonIt enables the application to fragment messages prior to applying protection. 63c0b9f4feSDoug Rabson.Pp 64c0b9f4feSDoug RabsonGSS-API implementations are recommended but not required to detect 65c0b9f4feSDoug Rabsoninvalid QOP values when 66c0b9f4feSDoug Rabson.Fn gss_wrap_size_limit 67c0b9f4feSDoug Rabsonis called. 68c0b9f4feSDoug RabsonThis routine guarantees only a maximum message size, 69c0b9f4feSDoug Rabsonnot the availability of specific QOP values for message protection. 70c0b9f4feSDoug Rabson.Pp 71c0b9f4feSDoug RabsonSuccessful completion of this call does not guarantee that 72c0b9f4feSDoug Rabson.Xr gss_wrap 3 73c0b9f4feSDoug Rabsonwill be able to protect a message of length max_input_size bytes, 74c0b9f4feSDoug Rabsonsince this ability may depend on the availability of system resources 75c0b9f4feSDoug Rabsonat the time that 76c0b9f4feSDoug Rabson.Xr gss_wrap 3 77c0b9f4feSDoug Rabsonis called. 78c0b9f4feSDoug RabsonHowever, if the implementation itself imposes an upper limit on 79c0b9f4feSDoug Rabsonthe length of messages that may be processed by gss_wrap, 80c0b9f4feSDoug Rabsonthe implementation should not return a value via 81c0b9f4feSDoug Rabson.Dv max_input_bytes 82c0b9f4feSDoug Rabsonthat is greater than this length. 83c0b9f4feSDoug Rabson.Sh PARAMETERS 84*6a557179SJoel Dahl.Bl -tag -width ".It req_output_size" 85c0b9f4feSDoug Rabson.It minor_status 86c0b9f4feSDoug RabsonMechanism specific status code. 87c0b9f4feSDoug Rabson.It context_handle 88c0b9f4feSDoug RabsonA handle that refers to the security over which the messages will be sent. 89c0b9f4feSDoug Rabson.It conf_req_flag 90c0b9f4feSDoug RabsonIndicates whether 91c0b9f4feSDoug Rabson.Xr gss_wrap 3 92c0b9f4feSDoug Rabsonwill be asked to apply confidentiality protection 93c0b9f4feSDoug Rabsonin addition to integrity protection. 94c0b9f4feSDoug Rabson.It qop_req 95c0b9f4feSDoug RabsonIndicates the level of protection that 96c0b9f4feSDoug Rabson.Xr gss_wrap 3 97c0b9f4feSDoug Rabsonwill be asked to provide. 98c0b9f4feSDoug Rabson.It req_output_size 99c0b9f4feSDoug RabsonThe desired maximum size for tokens emitted by 100c0b9f4feSDoug Rabson.Xr gss_wrap 3 . 101c0b9f4feSDoug Rabson.It max_input_size 102c0b9f4feSDoug RabsonThe maximum input message size that may be presented to 103c0b9f4feSDoug Rabson.Xr gss_wrap 3 104c0b9f4feSDoug Rabsonin order to guarantee that the emitted token shall 105c0b9f4feSDoug Rabsonbe no larger than 106c0b9f4feSDoug Rabson.Dv req_output_size 107c0b9f4feSDoug Rabsonbytes. 108c0b9f4feSDoug Rabson.El 109c0b9f4feSDoug Rabson.Sh RETURN VALUES 110*6a557179SJoel Dahl.Bl -tag -width ".It GSS_S_CONTEXT_EXPIRED" 111c0b9f4feSDoug Rabson.It GSS_S_COMPLETE 112c0b9f4feSDoug RabsonSuccessful completion. 113c0b9f4feSDoug Rabson.It GSS_S_NO_CONTEXT 114c0b9f4feSDoug RabsonThe referenced context could not be accessed. 115c0b9f4feSDoug Rabson.It GSS_S_CONTEXT_EXPIRED 116c0b9f4feSDoug RabsonThe context has expired. 117c0b9f4feSDoug Rabson.It GSS_S_BAD_QOP 118c0b9f4feSDoug RabsonThe specified QOP is not supported by the mechanism. 119c0b9f4feSDoug Rabson.El 120c0b9f4feSDoug Rabson.Sh SEE ALSO 121c0b9f4feSDoug Rabson.Xr gss_wrap 3 122c0b9f4feSDoug Rabson.Sh STANDARDS 123*6a557179SJoel Dahl.Bl -tag -width ".It RFC 2743" 124c0b9f4feSDoug Rabson.It RFC 2743 125c0b9f4feSDoug RabsonGeneric Security Service Application Program Interface Version 2, Update 1 126c0b9f4feSDoug Rabson.It RFC 2744 127c0b9f4feSDoug RabsonGeneric Security Service API Version 2 : C-bindings 1282b39bec3SGiorgos Keramidas.El 129c0b9f4feSDoug Rabson.Sh HISTORY 130c0b9f4feSDoug RabsonThe 131c0b9f4feSDoug Rabson.Nm 132d76ba3efSGavin Atkinsonfunction first appeared in 133c0b9f4feSDoug Rabson.Fx 7.0 . 134c0b9f4feSDoug Rabson.Sh AUTHORS 135c0b9f4feSDoug RabsonJohn Wray, Iris Associates 13660b9f20aSDoug Rabson.Sh COPYRIGHT 13760b9f20aSDoug RabsonCopyright (C) The Internet Society (2000). All Rights Reserved. 13860b9f20aSDoug Rabson.Pp 13960b9f20aSDoug RabsonThis document and translations of it may be copied and furnished to 14060b9f20aSDoug Rabsonothers, and derivative works that comment on or otherwise explain it 14160b9f20aSDoug Rabsonor assist in its implementation may be prepared, copied, published 14260b9f20aSDoug Rabsonand distributed, in whole or in part, without restriction of any 14360b9f20aSDoug Rabsonkind, provided that the above copyright notice and this paragraph are 14460b9f20aSDoug Rabsonincluded on all such copies and derivative works. However, this 14560b9f20aSDoug Rabsondocument itself may not be modified in any way, such as by removing 14660b9f20aSDoug Rabsonthe copyright notice or references to the Internet Society or other 14760b9f20aSDoug RabsonInternet organizations, except as needed for the purpose of 14860b9f20aSDoug Rabsondeveloping Internet standards in which case the procedures for 14960b9f20aSDoug Rabsoncopyrights defined in the Internet Standards process must be 15060b9f20aSDoug Rabsonfollowed, or as required to translate it into languages other than 15160b9f20aSDoug RabsonEnglish. 15260b9f20aSDoug Rabson.Pp 15360b9f20aSDoug RabsonThe limited permissions granted above are perpetual and will not be 15460b9f20aSDoug Rabsonrevoked by the Internet Society or its successors or assigns. 15560b9f20aSDoug Rabson.Pp 15660b9f20aSDoug RabsonThis document and the information contained herein is provided on an 15760b9f20aSDoug Rabson"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 15860b9f20aSDoug RabsonTASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 15960b9f20aSDoug RabsonBUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 16060b9f20aSDoug RabsonHEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 16160b9f20aSDoug RabsonMERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 162