ktfile.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * Use is subject to license terms.
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * Copyright 1990 by the Massachusetts Institute of Technology.
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * All Rights Reserved.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * Export of this software from the United States of America may
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * require a specific license from the United States Government.
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * It is the responsibility of any person or organization contemplating
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * export to obtain such a license before exporting.
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * distribute this software and its documentation for any purpose and
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * without fee is hereby granted, provided that the above copyright
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac * notice appear in all copies and that both that copyright notice and
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * this permission notice appear in supporting documentation, and that
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * the name of M.I.T. not be used in advertising or publicity pertaining
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * to distribution of the software without specific, written prior
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * permission. Furthermore if you modify this software you must label
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * your software as modified software and not distribute it in such a
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * fashion that it might be confused with the original M.I.T. software.
50dc873c54509e599dd90f9761c2e513e745b2bcludo * M.I.T. makes no representations about the suitability of
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * this software for any purpose. It is provided "as is" without express
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * or implied warranty.
0258980882ae9b13d6496fb92f9a03e0174d2345dugan * This header file contains information needed by internal routines
396f75ca15234ac35cb8990f241225330c19c43amatthew * of the file-based ticket cache implementation.
396f75ca15234ac35cb8990f241225330c19c43amatthew#pragma ident "%Z%%M% %I% %E% SMI"
396f75ca15234ac35cb8990f241225330c19c43amatthew * Constants
396f75ca15234ac35cb8990f241225330c19c43amatthew#define KRB5_KT_VNO_1 0x0501 /* krb v5, keytab version 1 (DCE compat) */
396f75ca15234ac35cb8990f241225330c19c43amatthew#define KRB5_KT_VNO 0x0502 /* krb v5, keytab version 2 (standard) */
396f75ca15234ac35cb8990f241225330c19c43amatthewtypedef struct _krb5_ktfile_data {
396f75ca15234ac35cb8990f241225330c19c43amatthew offset_t offset; /* current offset into the data buffer */
0258980882ae9b13d6496fb92f9a03e0174d2345dugan uchar_t writable:1; /* Was the file opened for writing? */
0258980882ae9b13d6496fb92f9a03e0174d2345dugan#define KTFILENAME(id) (((krb5_ktfile_data *)(id)->data)->name)
0258980882ae9b13d6496fb92f9a03e0174d2345dugan#define KTFILEP(id) (((krb5_ktfile_data *)(id)->data)->openf)
396f75ca15234ac35cb8990f241225330c19c43amatthew#define KTDATAP(id) (((krb5_ktfile_data *)(id)->data)->datap)
396f75ca15234ac35cb8990f241225330c19c43amatthew#define KTVERSION(id) (((krb5_ktfile_data *)(id)->data)->version)
396f75ca15234ac35cb8990f241225330c19c43amatthew#define KTOFFSET(id) (((krb5_ktfile_data *)(id)->data)->offset)
396f75ca15234ac35cb8990f241225330c19c43amatthew const char *,
396f75ca15234ac35cb8990f241225330c19c43amatthew const char *,
396f75ca15234ac35cb8990f241225330c19c43amatthewkrb5_error_code KRB5_CALLCONV krb5_ktfile_start_seq_get
396f75ca15234ac35cb8990f241225330c19c43amatthew/* routines to be included on extended version (write routines) */
0258980882ae9b13d6496fb92f9a03e0174d2345dugan#endif /* _KRB5_KTFILE */