rc_mem.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _KRB5_RC_MEM_H
#define _KRB5_RC_MEM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* mech_krb5/krb5/rcache/rc_mem.h
*
* This file of the Kerberos V5 software is derived from public-domain code
* contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>.
*/
/*
* Declarations for the memory replay cache implementation.
*/
struct mem_data {
char *name;
krb5_deltat lifespan;
int hsize;
struct authlist **h;
};
extern krb5_rc_ops krb5_rc_mem_ops;
krb5_error_code KRB5_CALLCONV krb5_rc_mem_init
PROTOTYPE((krb5_context, krb5_rcache, krb5_deltat));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_recover
PROTOTYPE((krb5_context, krb5_rcache));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_destroy
PROTOTYPE((krb5_context, krb5_rcache));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_close
PROTOTYPE((krb5_context, krb5_rcache));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_store
PROTOTYPE((krb5_context, krb5_rcache, krb5_donot_replay *));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_expunge
PROTOTYPE((krb5_context, krb5_rcache));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_get_span
PROTOTYPE((krb5_context, krb5_rcache, krb5_deltat *));
char *KRB5_CALLCONV krb5_rc_mem_get_name
PROTOTYPE((krb5_context, krb5_rcache));
krb5_error_code KRB5_CALLCONV krb5_rc_mem_resolve
PROTOTYPE((krb5_context, krb5_rcache, char *));
krb5_error_code krb5_rc_mem_close_no_free
PROTOTYPE((krb5_context, krb5_rcache));
void krb5_rc_free_entry
PROTOTYPE((krb5_context, krb5_donot_replay **));
#ifdef __cplusplus
}
#endif
#endif /* !_KRB5_RC_MEM_H */