2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1986, 2010, Oracle and/or its affiliates. All rights reserved. 2N/A * Copyright 1993 OpenVision Technologies, Inc., All Rights Reserved. 2N/A * 1.10 1994/10/27 12:39:23 jik Exp $ 2N/A * Miscellaneous XDR routines. 2N/A * We go through this contortion because size_t is a now a ulong, 2N/A * GSS-API uses ulongs. 2N/A * Generic routine to wrap data used by client and server sides. 2N/A * Create a temporary XDR/buffer to hold the data to be wrapped. 2N/A "__rpc_gss_wrap_data\n"));
2N/A * serialize the sequence number into tmp memory 2N/A * serialize the arguments into tmp memory 2N/A * Data to be wrapped goes in in_buf. If privacy is used, 2N/A * out_buf will have wrapped data (in_buf will no longer be 2N/A * needed). If integrity is used, out_buf will have checksum 2N/A * which will follow the data in in_buf. 2N/A * write out in_buf and out_buf as needed 2N/A * Generic routine to unwrap data used by client and server sides. 2N/A * Pull out wrapped data. For privacy service, this is the 2N/A * encrypted data. For integrity service, this is the data 2N/A * followed by a checksum. 2N/A * Keep the returned token (unencrypted data) in in_buf. 2N/A * If privacy was not used, or if QOP is not what we are 2N/A * If QOP is not what we are expecting, fail. 2N/A * The data consists of the sequence number followed by the 2N/A * arguments. Make sure sequence number is what we are 2N/A * expecting (i.e., the value in the header). 2N/A * Deserialize the arguments into xdr_ptr, and release in_buf. 2N/A * max_input_size may result in negative value 2N/A "gss_wrap_size_limit failed in " 2N/A "__find_max_data_length\n"));