linux/include/linux/sunrpc/gss_asn1.h

/*
 *  linux/include/linux/sunrpc/gss_asn1.h
 *
 *  minimal asn1 for generic encoding/decoding of gss tokens
 *
 *  Adapted from MIT Kerberos 5-1.2.1 lib/include/krb5.h,
 *  lib/gssapi/krb5/gssapiP_krb5.h, and others
 *
 *  Copyright (c) 2000 The Regents of the University of Michigan.
 *  All rights reserved.
 *
 *  Andy Adamson   <[email protected]>
 */

/*
 * Copyright 1995 by the Massachusetts Institute of Technology.
 * All Rights Reserved.
 *
 * Export of this software from the United States of America may
 *   require a specific license from the United States Government.
 *   It is the responsibility of any person or organization contemplating
 *   export to obtain such a license before exporting.
 *
 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
 * distribute this software and its documentation for any purpose and
 * without fee is hereby granted, provided that the above copyright
 * notice appear in all copies and that both that copyright notice and
 * this permission notice appear in supporting documentation, and that
 * the name of M.I.T. not be used in advertising or publicity pertaining
 * to distribution of the software without specific, written prior
 * permission.  Furthermore if you modify this software you must label
 * your software as modified software and not distribute it in such a
 * fashion that it might be confused with the original M.I.T. software.
 * M.I.T. makes no representations about the suitability of
 * this software for any purpose.  It is provided "as is" without express
 * or implied warranty.
 *
 */


#include <linux/sunrpc/gss_api.h>

#define SIZEOF_INT

/* from gssapi_err_generic.h */
#define G_BAD_SERVICE_NAME
#define G_BAD_STRING_UID
#define G_NOUSER
#define G_VALIDATE_FAILED
#define G_BUFFER_ALLOC
#define G_BAD_MSG_CTX
#define G_WRONG_SIZE
#define G_BAD_USAGE
#define G_UNKNOWN_QOP
#define G_NO_HOSTNAME
#define G_BAD_HOSTNAME
#define G_WRONG_MECH
#define G_BAD_TOK_HEADER
#define G_BAD_DIRECTION
#define G_TOK_TRUNC
#define G_REFLECT
#define G_WRONG_TOKID

#define g_OID_equal(o1,o2)

u32 g_verify_token_header(
     struct xdr_netobj *mech,
     int *body_size,
     unsigned char **buf_in,
     int toksize);

int g_token_size(
     struct xdr_netobj *mech,
     unsigned int body_size);

void g_make_token_header(
     struct xdr_netobj *mech,
     int body_size,
     unsigned char **buf);