1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * Copyright 2002 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate */ 5*7c478bd9Sstevel@tonic-gate 6*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*7c478bd9Sstevel@tonic-gate 8*7c478bd9Sstevel@tonic-gate /* 9*7c478bd9Sstevel@tonic-gate * lib/krb5/ccache/ccdefops.c 10*7c478bd9Sstevel@tonic-gate * 11*7c478bd9Sstevel@tonic-gate * Copyright 1990 by the Massachusetts Institute of Technology. 12*7c478bd9Sstevel@tonic-gate * All Rights Reserved. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * Export of this software from the United States of America may 15*7c478bd9Sstevel@tonic-gate * require a specific license from the United States Government. 16*7c478bd9Sstevel@tonic-gate * It is the responsibility of any person or organization contemplating 17*7c478bd9Sstevel@tonic-gate * export to obtain such a license before exporting. 18*7c478bd9Sstevel@tonic-gate * 19*7c478bd9Sstevel@tonic-gate * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 20*7c478bd9Sstevel@tonic-gate * distribute this software and its documentation for any purpose and 21*7c478bd9Sstevel@tonic-gate * without fee is hereby granted, provided that the above copyright 22*7c478bd9Sstevel@tonic-gate * notice appear in all copies and that both that copyright notice and 23*7c478bd9Sstevel@tonic-gate * this permission notice appear in supporting documentation, and that 24*7c478bd9Sstevel@tonic-gate * the name of M.I.T. not be used in advertising or publicity pertaining 25*7c478bd9Sstevel@tonic-gate * to distribution of the software without specific, written prior 26*7c478bd9Sstevel@tonic-gate * permission. Furthermore if you modify this software you must label 27*7c478bd9Sstevel@tonic-gate * your software as modified software and not distribute it in such a 28*7c478bd9Sstevel@tonic-gate * fashion that it might be confused with the original M.I.T. software. 29*7c478bd9Sstevel@tonic-gate * M.I.T. makes no representations about the suitability of 30*7c478bd9Sstevel@tonic-gate * this software for any purpose. It is provided "as is" without express 31*7c478bd9Sstevel@tonic-gate * or implied warranty. 32*7c478bd9Sstevel@tonic-gate * 33*7c478bd9Sstevel@tonic-gate * 34*7c478bd9Sstevel@tonic-gate * Default credentials cache determination. This is a separate file 35*7c478bd9Sstevel@tonic-gate * so that the user can more easily override it. 36*7c478bd9Sstevel@tonic-gate */ 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate #include <k5-int.h> 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate #if defined(macintosh) 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate /* 43*7c478bd9Sstevel@tonic-gate * Macs use the shared, memory based credentials cache 44*7c478bd9Sstevel@tonic-gate * Windows may also use the ccapi cache, but only if the Krbcc32.dll 45*7c478bd9Sstevel@tonic-gate * can be found; otherwise it falls back to using the old 46*7c478bd9Sstevel@tonic-gate * file-based ccache. 47*7c478bd9Sstevel@tonic-gate */ 48*7c478bd9Sstevel@tonic-gate #include "stdcc.h" /* from ccapi subdir */ 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_stdcc_ops; 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gate #else 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate #ifdef HAVE_SYS_TYPES_H 55*7c478bd9Sstevel@tonic-gate /* Systems that have <sys/types.h> probably have Unix-like files (off_t, 56*7c478bd9Sstevel@tonic-gate for example, which is needed by fcc.h). */ 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate #include "fcc.h" /* From file subdir */ 59*7c478bd9Sstevel@tonic-gate krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_file_ops; 60*7c478bd9Sstevel@tonic-gate 61*7c478bd9Sstevel@tonic-gate #else 62*7c478bd9Sstevel@tonic-gate /* Systems that don't have <sys/types.h> probably have stdio anyway. */ 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gate #include "scc.h" /* From stdio subdir */ 65*7c478bd9Sstevel@tonic-gate krb5_cc_ops *krb5_cc_dfl_ops = &krb5_scc_ops; 66*7c478bd9Sstevel@tonic-gate 67*7c478bd9Sstevel@tonic-gate #endif 68*7c478bd9Sstevel@tonic-gate 69*7c478bd9Sstevel@tonic-gate #endif 70