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