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.
 
 
 
 
 
 

60 lines
1.6 KiB

/////////////////////////////////////////////////////////////////////////////
// FILE : sgccheck.h //
// DESCRIPTION : include file //
// AUTHOR : //
// HISTORY : //
// Jun 23 1998 jeffspel Created //
// //
// Copyright (C) 1998 Microsoft Corporation All Rights Reserved //
/////////////////////////////////////////////////////////////////////////////
#ifndef __SGCCHECK_H__
#define __SGCCHECK_H__
#ifdef __cplusplus
extern "C" {
#endif
extern DWORD
LoadSGCRoots(
IN CRITICAL_SECTION *pCritSec); // must be initialized
//
// delete the public key values
//
void SGCDeletePubKeyValues(
IN OUT BYTE **ppbKeyMod,
IN OUT DWORD *pcbKeyMod,
IN OUT DWORD *pdwKeyExpo
);
//
// get the public key form the cert context and assign it to the
// passed in parameters
//
extern DWORD
SGCAssignPubKey(
IN PCCERT_CONTEXT pCertContext,
IN OUT BYTE **ppbKeyMod,
IN OUT DWORD *pcbKeyMod,
IN OUT DWORD *pdwKeyExpo);
//
// check if the context may be SGC enabled
//
extern DWORD
SPQueryCFLevel(
IN PCCERT_CONTEXT pCertContext,
IN BYTE *pbExchKeyMod,
IN DWORD cbExchKeyMod,
IN DWORD dwExchKeyExpo,
OUT DWORD *pdwSGCFlags);
#ifdef __cplusplus
}
#endif
#endif // __SGCCHECK_H__