X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2FWINNT%2Fafsd%2Fafskfw.h;h=d9fb66a9074ae770c4a9c2937db036d7ad7d7717;hp=d856013e019a1d960b39cdb1a56c223e6521dff6;hb=255d055e6123bcce76ef9e531a0c4963da4f0fef;hpb=14005bc769bbca0a1944aacce1f4c9aae7d55d9b diff --git a/src/WINNT/afsd/afskfw.h b/src/WINNT/afsd/afskfw.h index d856013..d9fb66a 100644 --- a/src/WINNT/afsd/afskfw.h +++ b/src/WINNT/afsd/afskfw.h @@ -1,5 +1,6 @@ /* - * Copyright (c) 2003 SkyRope, LLC +* Copyright (c) 2004, 2005, 2006 Secure Endpoints Inc. +* Copyright (c) 2003 SkyRope, LLC * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -36,9 +37,10 @@ extern "C" { #include #include #include +#include #include -#define MAXCELLCHARS 64 +#define CELL_MAXNAMELEN 256 #define MAXHOSTCHARS 64 #define MAXHOSTSPERCELL 8 #define TRANSARCAFSDAEMON "TransarcAFSDaemon" @@ -47,9 +49,9 @@ void KFW_initialize(void); void KFW_cleanup(void); int KFW_is_available(void); int KFW_AFS_destroy_tickets_for_cell(char *); +int KFW_AFS_destroy_tickets_for_principal(char *); int KFW_AFS_renew_expiring_tokens(void); int KFW_AFS_get_cred( char * username, - char * instance, char * cell, char * password, int lifetime, @@ -61,6 +63,15 @@ BOOL KFW_AFS_wait_for_service_start(void); BOOL KFW_probe_kdc(struct afsconf_cell *); int KFW_AFS_get_cellconfig(char *, struct afsconf_cell *, char *); void KFW_import_windows_lsa(void); +BOOL KFW_AFS_get_lsa_principal(char *, DWORD *); +int KFW_AFS_set_file_cache_dacl(char *filename, HANDLE hUserToken); +int KFW_AFS_obtain_user_temp_directory(HANDLE hUserToken, char *newfilename, int size); +int KFW_AFS_copy_file_cache_to_default_cache(char * filename); + + +/* These functions are only to be used in the afslogon.dll */ +void KFW_AFS_copy_cache_to_system_file(char *, char *); +int KFW_AFS_copy_system_file_to_default_cache(char *); /* From afs/krb_prot.h */ /* values for kerb error codes */ @@ -83,6 +94,7 @@ void KFW_import_windows_lsa(void); #define PROBE_USERNAME "OPENAFS-KDC-PROBE" #define PROBE_PASSWORD_LEN 16 +#define DO_NOT_REGISTER_VARNAME "OPENAFS_DO_NOT_REGISTER_AFS_ID" #ifdef __cplusplus } #endif