Source code of Windows XP (NT5)
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) 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
|