rcdef.c revision 7934:6aeeafc994de
1227825Stheraven/* 2227825Stheraven * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 3227825Stheraven * Use is subject to license terms. 4353358Sdim */ 5353358Sdim 6353358Sdim 7227825Stheraven/* 8227825Stheraven * lib/krb5/rcache/rcdef.c 9227825Stheraven * 10227825Stheraven * Copyright 1990 by the Massachusetts Institute of Technology. 11227825Stheraven * All Rights Reserved. 12227825Stheraven * 13227825Stheraven * Export of this software from the United States of America may 14227825Stheraven * require a specific license from the United States Government. 15227825Stheraven * It is the responsibility of any person or organization contemplating 16227825Stheraven * export to obtain such a license before exporting. 17227825Stheraven * 18227825Stheraven * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 19227825Stheraven * distribute this software and its documentation for any purpose and 20227825Stheraven * without fee is hereby granted, provided that the above copyright 21227825Stheraven * notice appear in all copies and that both that copyright notice and 22227825Stheraven * this permission notice appear in supporting documentation, and that 23227825Stheraven * the name of M.I.T. not be used in advertising or publicity pertaining 24227825Stheraven * to distribution of the software without specific, written prior 25227825Stheraven * permission. Furthermore if you modify this software you must label 26227825Stheraven * your software as modified software and not distribute it in such a 27227825Stheraven * fashion that it might be confused with the original M.I.T. software. 28227825Stheraven * M.I.T. makes no representations about the suitability of 29227825Stheraven * this software for any purpose. It is provided "as is" without express 30227825Stheraven * or implied warranty. 31227825Stheraven * 32227825Stheraven * 33227825Stheraven * replay cache default operationvectors. 34227825Stheraven */ 35227825Stheraven 36227825Stheraven#include "k5-int.h" 37227825Stheraven#include "rc_file.h" 38227825Stheraven#include "rc_mem.h" 39227825Stheraven 40227825Stheraven 41227825Stheraven/* 42261272Sdim * Solaris Kerberos 43227825Stheraven * MIT 1.4 just has "dfl" while we now have "FILE" and "MEMORY". 44227825Stheraven */ 45227825Stheravenconst krb5_rc_ops krb5_rc_file_ops = { 46227825Stheraven 0, 47227825Stheraven "FILE", 48227825Stheraven krb5_rc_file_init, 49227825Stheraven krb5_rc_file_recover, 50227825Stheraven krb5_rc_file_recover_or_init, 51227825Stheraven krb5_rc_file_destroy, 52227825Stheraven krb5_rc_file_close, 53227825Stheraven krb5_rc_file_store, 54227825Stheraven krb5_rc_file_expunge, 55227825Stheraven krb5_rc_file_get_span, 56227825Stheraven krb5_rc_file_get_name, 57227825Stheraven krb5_rc_file_resolve 58227825Stheraven}; 59227825Stheraven 60227825Stheravenconst krb5_rc_ops krb5_rc_mem_ops = { 61227825Stheraven 0, 62227825Stheraven "MEMORY", 63227825Stheraven krb5_rc_mem_init, 64227825Stheraven krb5_rc_mem_recover, 65227825Stheraven krb5_rc_mem_recover_or_init, 66227825Stheraven krb5_rc_mem_destroy, 67227825Stheraven krb5_rc_mem_close, 68227825Stheraven krb5_rc_mem_store, 69227825Stheraven /* expunging not used in memory rcache type */ 70227825Stheraven NULL, 71227825Stheraven krb5_rc_mem_get_span, 72227825Stheraven krb5_rc_mem_get_name, 73227825Stheraven krb5_rc_mem_resolve 74227825Stheraven}; 75227825Stheraven 76227825Stheravenkrb5_rc_ops const *krb5_rc_dfl_ops = &krb5_rc_file_ops; 77227825Stheraven