windows-nt/Source/XPSP1/NT/termsrv/license/tlserver/include/trust.h

61 lines
1.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//+--------------------------------------------------------------------------
//
// Copyright (c) 1997-1999 Microsoft Corporation
//
// File:
//
// Contents:
//
// History:
//
//---------------------------------------------------------------------------
#ifndef __TLSTRUST_H__
#define __TLSTRUST_H__
#define RANDOM_CHALLENGE_DATASIZE 32 // 128 bits data.
#define RUN_MD5_HASH_TIMES 5 // time to hash data.
#ifdef __cplusplus
extern "C" {
#endif
DWORD WINAPI
TLSEstablishTrustWithServer(
IN TLS_HANDLE hHandle,
IN HCRYPTPROV hCryptProv,
IN DWORD dwClientType,
OUT PDWORD pdwErrCode
);
DWORD WINAPI
TLSGenerateRandomChallengeData(
IN HCRYPTPROV hCryptProv,
IN PBYTE* ppbChallengeData,
IN PDWORD pcbChallengeData
);
DWORD WINAPI
TLSVerifyChallengeResponse(
IN HCRYPTPROV hCryptProv,
IN DWORD dwClientType,
IN PTLSCHALLENGEDATA pClientChallengeData,
IN PTLSCHALLENGERESPONSEDATA pServerChallengeResponseData
);
DWORD
TLSGenerateChallengeResponseData(
IN HCRYPTPROV hCryptProv,
IN DWORD dwClientType,
IN PTLSCHALLENGEDATA pChallengeData,
OUT PBYTE* pbResponseData,
OUT PDWORD cbResponseData
);
#ifdef __cplusplus
}
#endif
#endif