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.
89 lines
1.9 KiB
89 lines
1.9 KiB
//+--------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) 1997-1999 Microsoft Corporation
|
|
//
|
|
// File: gencert.h
|
|
//
|
|
// Contents:
|
|
//
|
|
// History:
|
|
//
|
|
//---------------------------------------------------------------------------
|
|
#ifndef __GEN_CERT_H__
|
|
#define __GEN_CERT_H__
|
|
#include "server.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
BOOL
|
|
TLSEncryptBase64EncodeHWID(
|
|
PHWID pHwid,
|
|
DWORD* cbBase64EncodeHwid,
|
|
PBYTE* szBase64EncodeHwid
|
|
);
|
|
|
|
DWORD
|
|
TLSExportPublicKey(
|
|
IN HCRYPTPROV hCryptProv,
|
|
IN DWORD dwKeyType,
|
|
IN OUT PDWORD pcbByte,
|
|
IN OUT PCERT_PUBLIC_KEY_INFO *ppbByte
|
|
);
|
|
|
|
DWORD
|
|
TLSCryptEncodeObject(
|
|
IN DWORD dwEncodingType,
|
|
IN LPCSTR lpszStructType,
|
|
IN const void * pvStructInfo,
|
|
OUT PBYTE* ppbEncoded,
|
|
OUT DWORD* pcbEncoded
|
|
);
|
|
|
|
DWORD
|
|
TLSChainProprietyCertificate(
|
|
HCRYPTPROV hCryptProv,
|
|
BOOL bTemp,
|
|
PBYTE pbLicense,
|
|
DWORD cbLicense,
|
|
PBYTE* pbChained,
|
|
DWORD* cbChained
|
|
);
|
|
|
|
|
|
DWORD
|
|
TLSVerifyProprietyChainedCertificate(
|
|
HCRYPTPROV hCryptProv,
|
|
PBYTE pbData,
|
|
DWORD cbData
|
|
);
|
|
|
|
DWORD
|
|
TLSGenerateClientCertificate(
|
|
IN HCRYPTPROV hCryptProv,
|
|
IN DWORD dwNumLicensedProduct,
|
|
IN PTLSDBLICENSEDPRODUCT pLicProduct,
|
|
IN WORD wLicenseChainDetail,
|
|
OUT PBYTE* ppbEncodedCert,
|
|
OUT PDWORD pcbEncodedCert
|
|
);
|
|
|
|
DWORD
|
|
TLSCreateSelfSignCertificate(
|
|
HCRYPTPROV,
|
|
DWORD,
|
|
PBYTE,
|
|
DWORD,
|
|
DWORD,
|
|
PCERT_EXTENSION,
|
|
PDWORD,
|
|
PBYTE*
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|