Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*++
Copyright (c) 1993 Microsoft Corporation
Module Name:
nllmssp.h
Abstract:
Externally visible definition of the NT Lanman Security Support Provider (NtLmSsp) Service.
Author:
Cliff Van Dyke (cliffv) 01-Jul-1993
Environment:
User mode only. Contains NT-specific code. Requires ANSI C extensions: slash-slash comments, long external names.
Revision History:
Borrowed from the Ciaro's ntlmssp.h by PeterWi.
ChandanS 03-Aug-1996 Stolen from net\svcdlls\ntlmssp\ntlmssp.h --*/
#ifndef _NTLMSSP_
#define _NTLMSSP_
#include <ntverp.h>
//
// Defines for SecPkgInfo structure returned by SpGetInfo
//
#define NTLMSP_NAME L"NTLM"
#define NTLMSP_COMMENT L"NTLM Security Package"
#define NTLMSP_CAPS (SECPKG_FLAG_TOKEN_ONLY | \
SECPKG_FLAG_MULTI_REQUIRED | \ SECPKG_FLAG_CONNECTION | \ SECPKG_FLAG_INTEGRITY | \ SECPKG_FLAG_PRIVACY | \ SECPKG_FLAG_IMPERSONATION | \ SECPKG_FLAG_ACCEPT_WIN32_NAME | \ SECPKG_FLAG_NEGOTIABLE | \ SECPKG_FLAG_LOGON )
#define NTLMSP_MAX_TOKEN_SIZE 0x770
#define NTLM_CRED_NULLSESSION SECPKG_CRED_RESERVED
// includes that should go elsewhere.
//
// Move to secscode.h
//
#define SEC_E_PACKAGE_UNKNOWN SEC_E_SECPKG_NOT_FOUND
#define SEC_E_INVALID_CONTEXT_REQ SEC_E_NOT_SUPPORTED
#define SEC_E_INVALID_CREDENTIAL_USE SEC_E_NOT_SUPPORTED
#define SEC_I_CALL_NTLMSSP_SERVICE 0xFFFFFFFF
//
// Could be in sspi.h
//
#define SSP_RET_REAUTHENTICATION 0x8000000
//
// client/server versions
//
// the version has the following format: (8 octets, little endian)
//
// 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
// -----------------------------------------------------------------
// | major | minor | build |
// -----------------------------------------------------------------
// | reserved | revision |
// -----------------------------------------------------------------
//
#define NTLMSSP_REVISION_W2K3_RC1 10
#define NTLMSSP_REVISION_W2K3 15
#define NTLMSSP_REVISION_CURRENT NTLMSSP_REVISION_W2K3
#define NTLMSSP_ENGINE_VERSION \
( ( VER_PRODUCTMAJORVERSION & 0xFF ) \ | ( ( VER_PRODUCTMINORVERSION & 0xFF ) << 8 ) \ | ( ( VER_PRODUCTBUILD & 0xFFFF ) << 16 ) \ | ( ( (ULONG64) NTLMSSP_REVISION_CURRENT & 0xFF ) << 56 ) )
#endif // _NTLMSSP_
|