kdb_log.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KDB_LOG_H
#define _KDB_LOG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <k5-int.h>
#include <iprop_hdr.h>
#include <iprop.h>
#include <limits.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* DB macros
*/
/*
* Current DB version #
*/
#define KDB_VERSION 1
/*
* DB log states
*/
#define KDB_STABLE 1
#define KDB_UNSTABLE 2
#define KDB_CORRUPT 3
/*
* DB log constants
*/
#define KDB_UMAGIC 0x6661212
#define KDB_HMAGIC 0x6662323
/*
* DB Flags
*/
#define FKADMIND 1
#define FKPROPLOG 2
#define FKPROPD 3
/*
* Default ulog file attributes
*/
#define ULOG_FILE "/var/krb5/principal.ulog"
#define MAX_ULOGENTRIES 2500
#define DEF_ULOGENTRIES 1000
/*
* Max size of update entry + update header
* We make this large since resizing can be costly.
*/
/*
* Prototype declarations
*/
typedef struct kdb_hlog {
} kdb_hlog_t;
typedef struct kdb_ent_header {
typedef struct _kdb_log_context {
int ulogfd;
#ifdef __cplusplus
}
#endif
#endif /* !_KDB_LOG_H */