OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright (c) 2005 Massachusetts Institute of Technology 00003 * 00004 * Permission is hereby granted, free of charge, to any person 00005 * obtaining a copy of this software and associated documentation 00006 * files (the "Software"), to deal in the Software without 00007 * restriction, including without limitation the rights to use, copy, 00008 * modify, merge, publish, distribute, sublicense, and/or sell copies 00009 * of the Software, and to permit persons to whom the Software is 00010 * furnished to do so, subject to the following conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be 00013 * included in all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00016 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00017 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00018 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00019 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00020 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00021 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00022 * SOFTWARE. 00023 */ 00024 00025 /* $Id$ */ 00026 00027 /* Adapted from multiple Leash header files */ 00028 00029 #ifndef __KHIMAIRA_KRB5COMMON_H 00030 #define __KHIMAIRA_KRB5COMMON_H 00031 00032 #include<krb5.h> 00033 00034 #ifndef NO_KRB5 00035 int khm_krb5_error(krb5_error_code rc, LPCSTR FailedFunctionName, 00036 int FreeContextFlag, krb5_context *ctx, 00037 krb5_ccache *cache); 00038 00039 int 00040 khm_krb5_get_error_string(krb5_error_code rc, 00041 wchar_t * buffer, 00042 khm_size cb_buffer); 00043 00044 int khm_krb5_initialize(khm_handle ident, krb5_context *, krb5_ccache *); 00045 00046 khm_int32 KHMAPI 00047 khm_krb5_find_ccache_for_identity(khm_handle ident, krb5_context *pctx, 00048 void * buffer, khm_size * pcbbuf); 00049 00050 khm_int32 KHMAPI 00051 khm_get_identity_expiration_time(krb5_context ctx, krb5_ccache cc, 00052 khm_handle ident, 00053 krb5_timestamp * pexpiration); 00054 00055 #ifndef MAX_HSTNM 00056 #define MAX_HSTNM 100 00057 #endif 00058 #endif /* NO_KRB5 */ 00059 00060 #endif