xref: /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/rcdef.c (revision 4bc0a2ef2b7ba50a7a717e7ddbf31472ad28e358)
1 /*
2  * Copyright 2005 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 /*
40  * Solaris Kerberos
41  * MIT 1.4 just has "dfl" while we now have "FILE" and "MEMORY".
42  */
43 krb5_rc_ops krb5_rc_file_ops = {
44 	0,
45 	"FILE",
46 	krb5_rc_file_init,
47 	krb5_rc_file_recover,
48 	krb5_rc_file_recover_or_init,
49 	krb5_rc_file_destroy,
50 	krb5_rc_file_close,
51 	krb5_rc_file_store,
52 	krb5_rc_file_expunge,
53 	krb5_rc_file_get_span,
54 	krb5_rc_file_get_name,
55 	krb5_rc_file_resolve
56 };
57 
58 krb5_rc_ops krb5_rc_mem_ops = {
59 	0,
60 	"MEMORY",
61 	krb5_rc_mem_init,
62 	krb5_rc_mem_recover,
63 	krb5_rc_mem_recover_or_init,
64 	krb5_rc_mem_destroy,
65 	krb5_rc_mem_close,
66 	krb5_rc_mem_store,
67 	/* expunging not used in memory rcache type */
68 	NULL,
69 	krb5_rc_mem_get_span,
70 	krb5_rc_mem_get_name,
71 	krb5_rc_mem_resolve
72 };
73 
74 krb5_rc_ops *krb5_rc_dfl_ops = &krb5_rc_file_ops;
75