rc_mem.h revision 781:57319a72b15f
1/* 2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 6#ifndef _KRB5_RC_MEM_H 7#define _KRB5_RC_MEM_H 8 9#pragma ident "%Z%%M% %I% %E% SMI" 10 11#include "rc-int.h" 12 13#ifdef __cplusplus 14extern "C" { 15#endif 16 17/* 18 * mech_krb5/krb5/rcache/rc_mem.h 19 * 20 * This file of the Kerberos V5 software is derived from public-domain code 21 * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>. 22 */ 23 24/* 25 * Declarations for the memory replay cache implementation. 26 */ 27 28struct mem_data { 29 char *name; 30 krb5_deltat lifespan; 31 int hsize; 32 struct authlist **h; 33}; 34 35extern krb5_rc_ops krb5_rc_mem_ops; 36 37krb5_error_code KRB5_CALLCONV krb5_rc_mem_init 38 (krb5_context, krb5_rcache, krb5_deltat); 39krb5_error_code KRB5_CALLCONV krb5_rc_mem_recover 40 (krb5_context, krb5_rcache); 41krb5_error_code KRB5_CALLCONV krb5_rc_mem_recover_or_init 42 (krb5_context, krb5_rcache, krb5_deltat); 43krb5_error_code KRB5_CALLCONV krb5_rc_mem_destroy 44 (krb5_context, krb5_rcache); 45krb5_error_code KRB5_CALLCONV krb5_rc_mem_close 46 (krb5_context, krb5_rcache); 47krb5_error_code KRB5_CALLCONV krb5_rc_mem_store 48 (krb5_context, krb5_rcache, krb5_donot_replay *); 49krb5_error_code KRB5_CALLCONV krb5_rc_mem_expunge 50 (krb5_context, krb5_rcache); 51krb5_error_code KRB5_CALLCONV krb5_rc_mem_get_span 52 (krb5_context, krb5_rcache, krb5_deltat *); 53char *KRB5_CALLCONV krb5_rc_mem_get_name 54 (krb5_context, krb5_rcache); 55krb5_error_code KRB5_CALLCONV krb5_rc_mem_resolve 56 (krb5_context, krb5_rcache, char *); 57krb5_error_code krb5_rc_mem_close_no_free 58 (krb5_context, krb5_rcache); 59void krb5_rc_free_entry 60 (krb5_context, krb5_donot_replay **); 61 62#ifdef __cplusplus 63} 64#endif 65 66#endif /* !_KRB5_RC_MEM_H */ 67