1 /* 2 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3 * Use is subject to license terms. 4 */ 5 6 #pragma ident "%Z%%M% %I% %E% SMI" 7 8 /* 9 * lib/krb5/rcache/rcdef.c 10 * 11 * Copyright 1990 by the Massachusetts Institute of Technology. 12 * All Rights Reserved. 13 * 14 * Export of this software from the United States of America may 15 * require a specific license from the United States Government. 16 * It is the responsibility of any person or organization contemplating 17 * export to obtain such a license before exporting. 18 * 19 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 20 * distribute this software and its documentation for any purpose and 21 * without fee is hereby granted, provided that the above copyright 22 * notice appear in all copies and that both that copyright notice and 23 * this permission notice appear in supporting documentation, and that 24 * the name of M.I.T. not be used in advertising or publicity pertaining 25 * to distribution of the software without specific, written prior 26 * permission. M.I.T. makes no representations about the suitability of 27 * this software for any purpose. It is provided "as is" without express 28 * or implied warranty. 29 * 30 * 31 * replay cache default set of operation vectors. 32 */ 33 34 #include "k5-int.h" 35 #include "rc_file.h" 36 #include "rc_mem.h" 37 38 39 krb5_rc_ops krb5_rc_file_ops = { 40 0, 41 "FILE", 42 krb5_rc_file_init, 43 krb5_rc_file_recover, 44 krb5_rc_file_destroy, 45 krb5_rc_file_close, 46 krb5_rc_file_store, 47 krb5_rc_file_expunge, 48 krb5_rc_file_get_span, 49 krb5_rc_file_get_name, 50 krb5_rc_file_resolve 51 }; 52 53 krb5_rc_ops krb5_rc_mem_ops = { 54 0, 55 "MEMORY", 56 krb5_rc_mem_init, 57 krb5_rc_mem_recover, 58 krb5_rc_mem_destroy, 59 krb5_rc_mem_close, 60 krb5_rc_mem_store, 61 /* expunging not used in memory rcache type */ 62 NULL, 63 krb5_rc_mem_get_span, 64 krb5_rc_mem_get_name, 65 krb5_rc_mem_resolve 66 }; 67 68 krb5_rc_ops *krb5_rc_dfl_ops = &krb5_rc_file_ops; 69