//+---------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1992 - 1996.
//
//  File:       ni_kerb95.h
//
//  Contents:
//
//  Classes:
//
//  Functions:
//
//  History:    6-30-1997	Naomaru Itoi	Created
//
//----------------------------------------------------------------------------

//
// Make sure that you have defined UNICODE, _UNICODE, and WIN32 correctly in
// your build environment.
//

#include <windows.h>
#include <commctrl.h>
#include <lm.h>
#include <winwlx.h>
#include <stdio.h>
#include "kerberos.h"
#include "ni_common2.h"

// for debugging
#ifdef _DEBUG
#define D(x) {wprintf(L"%s", x);}
#define DS(x,y) {wprintf(x, y);}
#else
#define D(x)
#define DS(x,y)
#endif

// function declaration
BOOL WINAPI PermitTicketCache (VOID);

// constants
#define CacheSize	20
#define StrLen 256
#define KerberosVersion 4
#define MISTYPED_PASS L"Sorry, Kerb95 passwords do not match."
#define DefaultRealm L"UMICH.EDU" // I know this sucks ...

// global variable
typedef struct _KStruct {
	HANDLE hTicketCache;
	WCHAR identity[StrLen];
	WCHAR principal[StrLen];
	WCHAR instance[StrLen];
	WCHAR realm[StrLen];
} KStruct;
