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.

64 lines
1.4 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1998
  5. //
  6. // File: sysapi.h
  7. //
  8. // Contents: Support APIs used by licensing code
  9. //
  10. // History: 01-10-98 FredCh Created
  11. //
  12. //-----------------------------------------------------------------------------
  13. #ifndef _SYSAPI_H_
  14. #define _SYSAPI_H_
  15. #include "protect.h"
  16. #include "licemem.h"
  17. ///////////////////////////////////////////////////////////////////////////////
  18. // Binary blob API
  19. //
  20. VOID
  21. CopyBinaryBlob(
  22. PBYTE pbBuffer,
  23. PBinary_Blob pbbBlob,
  24. DWORD * pdwCount );
  25. LICENSE_STATUS
  26. GetBinaryBlob(
  27. PBinary_Blob pBBlob,
  28. DWORD dwMsgSize,
  29. PBYTE pMessage,
  30. PDWORD pcbProcessed );
  31. VOID
  32. FreeBinaryBlob(
  33. PBinary_Blob pBlob );
  34. #define GetBinaryBlobSize( _Blob ) sizeof( WORD ) + sizeof( WORD ) + _Blob.wBlobLen
  35. #define InitBinaryBlob( _pBlob ) \
  36. ( _pBlob )->pBlob = NULL; \
  37. ( _pBlob )->wBlobLen = 0;
  38. ///////////////////////////////////////////////////////////////////////////////
  39. // Hydra server certificate, public and private key API
  40. //
  41. LICENSE_STATUS
  42. GetServerCertificate(
  43. CERT_TYPE CertType,
  44. PBinary_Blob pCertBlob,
  45. DWORD dwKeyAlg );
  46. #endif