1178825Sdfr/*
2178825Sdfr * Copyright (c) 2003, PADL Software Pty Ltd.
3178825Sdfr * All rights reserved.
4178825Sdfr *
5178825Sdfr * Redistribution and use in source and binary forms, with or without
6178825Sdfr * modification, are permitted provided that the following conditions
7178825Sdfr * are met:
8178825Sdfr *
9178825Sdfr * 1. Redistributions of source code must retain the above copyright
10178825Sdfr *    notice, this list of conditions and the following disclaimer.
11178825Sdfr *
12178825Sdfr * 2. Redistributions in binary form must reproduce the above copyright
13178825Sdfr *    notice, this list of conditions and the following disclaimer in the
14178825Sdfr *    documentation and/or other materials provided with the distribution.
15178825Sdfr *
16178825Sdfr * 3. Neither the name of PADL Software nor the names of its contributors
17178825Sdfr *    may be used to endorse or promote products derived from this software
18178825Sdfr *    without specific prior written permission.
19178825Sdfr *
20178825Sdfr * THIS SOFTWARE IS PROVIDED BY PADL SOFTWARE AND CONTRIBUTORS ``AS IS'' AND
21178825Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22178825Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23178825Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL PADL SOFTWARE OR CONTRIBUTORS BE LIABLE
24178825Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25178825Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26178825Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27178825Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28178825Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29178825Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30178825Sdfr * SUCH DAMAGE.
31178825Sdfr */
32178825Sdfr
33233294Sstas/* $Id$ */
34178825Sdfr
35178825Sdfr#ifndef GSSAPI_CFX_H_
36178825Sdfr#define GSSAPI_CFX_H_ 1
37178825Sdfr
38178825Sdfr/*
39178825Sdfr * Implementation of draft-ietf-krb-wg-gssapi-cfx-01.txt
40178825Sdfr */
41178825Sdfr
42178825Sdfrtypedef struct gss_cfx_mic_token_desc_struct {
43178825Sdfr	u_char TOK_ID[2]; /* 04 04 */
44178825Sdfr	u_char Flags;
45178825Sdfr	u_char Filler[5];
46178825Sdfr	u_char SND_SEQ[8];
47178825Sdfr} gss_cfx_mic_token_desc, *gss_cfx_mic_token;
48178825Sdfr
49178825Sdfrtypedef struct gss_cfx_wrap_token_desc_struct {
50178825Sdfr	u_char TOK_ID[2]; /* 04 05 */
51178825Sdfr	u_char Flags;
52178825Sdfr	u_char Filler;
53178825Sdfr	u_char EC[2];
54178825Sdfr	u_char RRC[2];
55178825Sdfr	u_char SND_SEQ[8];
56178825Sdfr} gss_cfx_wrap_token_desc, *gss_cfx_wrap_token;
57178825Sdfr
58178825Sdfrtypedef struct gss_cfx_delete_token_desc_struct {
59178825Sdfr	u_char TOK_ID[2]; /* 05 04 */
60178825Sdfr	u_char Flags;
61178825Sdfr	u_char Filler[5];
62178825Sdfr	u_char SND_SEQ[8];
63178825Sdfr} gss_cfx_delete_token_desc, *gss_cfx_delete_token;
64178825Sdfr
65178825Sdfr#endif /* GSSAPI_CFX_H_ */
66