10Sstevel@tonic-gate /* 2*7934SMark.Phalan@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate * Use is subject to license terms. 40Sstevel@tonic-gate */ 50Sstevel@tonic-gate 60Sstevel@tonic-gate 70Sstevel@tonic-gate /* 80Sstevel@tonic-gate * lib/krb5/rcache/rcdef.c 90Sstevel@tonic-gate * 100Sstevel@tonic-gate * Copyright 1990 by the Massachusetts Institute of Technology. 110Sstevel@tonic-gate * All Rights Reserved. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * Export of this software from the United States of America may 140Sstevel@tonic-gate * require a specific license from the United States Government. 150Sstevel@tonic-gate * It is the responsibility of any person or organization contemplating 160Sstevel@tonic-gate * export to obtain such a license before exporting. 170Sstevel@tonic-gate * 180Sstevel@tonic-gate * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 190Sstevel@tonic-gate * distribute this software and its documentation for any purpose and 200Sstevel@tonic-gate * without fee is hereby granted, provided that the above copyright 210Sstevel@tonic-gate * notice appear in all copies and that both that copyright notice and 220Sstevel@tonic-gate * this permission notice appear in supporting documentation, and that 230Sstevel@tonic-gate * the name of M.I.T. not be used in advertising or publicity pertaining 240Sstevel@tonic-gate * to distribution of the software without specific, written prior 25*7934SMark.Phalan@Sun.COM * permission. Furthermore if you modify this software you must label 26*7934SMark.Phalan@Sun.COM * your software as modified software and not distribute it in such a 27*7934SMark.Phalan@Sun.COM * fashion that it might be confused with the original M.I.T. software. 28*7934SMark.Phalan@Sun.COM * M.I.T. makes no representations about the suitability of 290Sstevel@tonic-gate * this software for any purpose. It is provided "as is" without express 300Sstevel@tonic-gate * or implied warranty. 310Sstevel@tonic-gate * 320Sstevel@tonic-gate * 33*7934SMark.Phalan@Sun.COM * replay cache default operationvectors. 340Sstevel@tonic-gate */ 350Sstevel@tonic-gate 360Sstevel@tonic-gate #include "k5-int.h" 370Sstevel@tonic-gate #include "rc_file.h" 380Sstevel@tonic-gate #include "rc_mem.h" 390Sstevel@tonic-gate 400Sstevel@tonic-gate 41781Sgtb /* 42781Sgtb * Solaris Kerberos 43781Sgtb * MIT 1.4 just has "dfl" while we now have "FILE" and "MEMORY". 44781Sgtb */ 45*7934SMark.Phalan@Sun.COM const krb5_rc_ops krb5_rc_file_ops = { 460Sstevel@tonic-gate 0, 470Sstevel@tonic-gate "FILE", 480Sstevel@tonic-gate krb5_rc_file_init, 490Sstevel@tonic-gate krb5_rc_file_recover, 50781Sgtb krb5_rc_file_recover_or_init, 510Sstevel@tonic-gate krb5_rc_file_destroy, 520Sstevel@tonic-gate krb5_rc_file_close, 530Sstevel@tonic-gate krb5_rc_file_store, 540Sstevel@tonic-gate krb5_rc_file_expunge, 550Sstevel@tonic-gate krb5_rc_file_get_span, 560Sstevel@tonic-gate krb5_rc_file_get_name, 570Sstevel@tonic-gate krb5_rc_file_resolve 580Sstevel@tonic-gate }; 590Sstevel@tonic-gate 60*7934SMark.Phalan@Sun.COM const krb5_rc_ops krb5_rc_mem_ops = { 610Sstevel@tonic-gate 0, 620Sstevel@tonic-gate "MEMORY", 630Sstevel@tonic-gate krb5_rc_mem_init, 640Sstevel@tonic-gate krb5_rc_mem_recover, 65781Sgtb krb5_rc_mem_recover_or_init, 660Sstevel@tonic-gate krb5_rc_mem_destroy, 670Sstevel@tonic-gate krb5_rc_mem_close, 680Sstevel@tonic-gate krb5_rc_mem_store, 690Sstevel@tonic-gate /* expunging not used in memory rcache type */ 700Sstevel@tonic-gate NULL, 710Sstevel@tonic-gate krb5_rc_mem_get_span, 720Sstevel@tonic-gate krb5_rc_mem_get_name, 730Sstevel@tonic-gate krb5_rc_mem_resolve 740Sstevel@tonic-gate }; 750Sstevel@tonic-gate 76*7934SMark.Phalan@Sun.COM krb5_rc_ops const *krb5_rc_dfl_ops = &krb5_rc_file_ops; 77