#endif /* USE_FSPROBE */
DWORD CurrentState;
char HostName[64];
+ int use_kfw = KFW_is_available();
CurrentState = 0;
memset(HostName, '\0', sizeof(HostName));
return;
}
- if ( KFW_is_available() ) {
+ if ( use_kfw ) {
code = pkrb5_init_context(&ctx);
if ( code ) goto cleanup;
}
rc = pktc_GetToken(&aserver, &atoken, sizeof(atoken), &aclient);
- if ( KFW_is_available() ) {
+ if ( use_kfw ) {
code = pkrb5_timeofday(ctx, &now);
if ( code )
now = 0;
#ifdef USE_FSPROBE
serverReachable = cellPing(NULL);
#else
- if ( KFW_is_available() ) {
+ if ( use_kfw ) {
// If we can't use the FSProbe interface we can attempt to forge
// a kinit and if we can back an invalid user error we know the
// kdc is at least reachable
if ( IsDebuggerPresent() )
OutputDebugString("Server Reachable\n");
- if ( KFW_is_available() ) {
+ if ( use_kfw ) {
#ifdef USE_MS2MIT
KFW_import_windows_lsa();
#endif /* USE_MS2MIT */