2N/A/*
2N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#ifndef _KRB5_RC_MEM_H
2N/A#define _KRB5_RC_MEM_H
2N/A
2N/A
2N/A#include "rc-int.h"
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A * mech_krb5/krb5/rcache/rc_mem.h
2N/A *
2N/A * This file of the Kerberos V5 software is derived from public-domain code
2N/A * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>.
2N/A */
2N/A
2N/A/*
2N/A * Solaris Kerberos:
2N/A * Declarations for the memory replay cache implementation.
2N/A */
2N/A
2N/Astruct mem_data {
2N/A char *name;
2N/A krb5_deltat lifespan;
2N/A int hsize;
2N/A struct authlist **h;
2N/A};
2N/A
2N/Astruct global_rcache {
2N/A k5_mutex_t lock;
2N/A struct mem_data *data;
2N/A};
2N/A
2N/Aextern struct global_rcache grcache;
2N/A
2N/Aextern const krb5_rc_ops krb5_rc_mem_ops;
2N/A
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_init
2N/A (krb5_context, krb5_rcache, krb5_deltat);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_recover
2N/A (krb5_context, krb5_rcache);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_recover_or_init
2N/A (krb5_context, krb5_rcache, krb5_deltat);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_destroy
2N/A (krb5_context, krb5_rcache);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_close
2N/A (krb5_context, krb5_rcache);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_store
2N/A (krb5_context, krb5_rcache, krb5_donot_replay *);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_expunge
2N/A (krb5_context, krb5_rcache);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_get_span
2N/A (krb5_context, krb5_rcache, krb5_deltat *);
2N/Achar *KRB5_CALLCONV krb5_rc_mem_get_name
2N/A (krb5_context, krb5_rcache);
2N/Akrb5_error_code KRB5_CALLCONV krb5_rc_mem_resolve
2N/A (krb5_context, krb5_rcache, char *);
2N/Avoid krb5_rc_free_entry
2N/A (krb5_context, krb5_donot_replay **);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* !_KRB5_RC_MEM_H */