#ifndef _KRB5_RC_COM_H
#define _KRB5_RC_COM_H
#ifdef __cplusplus
extern "C" {
#endif
#include "rc_base.h"
#include "rc_io.h"
#include <k5-int.h>
#ifndef HASHSIZE
#define HASHSIZE 997
#endif
#define CMP_MALLOC -3
#define CMP_EXPIRED -2
#define CMP_REPLAY -1
#define CMP_HOHUM 0
#define cmp(old, new) \
(((old)->cusec == (new)->cusec) && \
((old)->ctime == (new)->ctime) && \
(strcmp((old)->client, (new)->client) == 0) && \
(strcmp((old)->server, (new)->server) == 0) ? CMP_REPLAY : CMP_HOHUM)
#define alive(context, new, t, time) \
(((new)->ctime + (t)) < (time) ? CMP_EXPIRED : CMP_HOHUM)
struct authlist {
krb5_donot_replay rep;
struct authlist *na;
struct authlist *nh;
};
int hash(krb5_donot_replay *rep, int hsize);
#ifdef __cplusplus
}
#endif
#endif