home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / CERTEXT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  1.5 KB  |  53 lines

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright 1996 - 1998 Microsoft Corporation
  5. //
  6. // File:        certext.h
  7. //
  8. // Contents:    Definitions and OIDs for standard Certificate Extensions
  9. //
  10. //---------------------------------------------------------------------------
  11.  
  12. //+--------------------------------------------------------------------------
  13. // Predefined certificate extension data structures that can be encoded/decoded
  14. // via wincrypt.h's CryptEncodeObject/CryptDecodeObject.
  15. //---------------------------------------------------------------------------
  16.  
  17. #ifndef __CERTEXT_H__
  18. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  19. #define __CERTEXT_H__
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. // Table entries
  26. #define ENC_SAMPLE1_REQUEST_STRUCT    ((LPCSTR) 3000)
  27. #define ENC_SAMPLE2_REQUEST_STRUCT    ((LPCSTR) 3001)
  28.  
  29. typedef struct _CERT_SAMPLE_STRUCTURE1_INFO
  30. {
  31.     DWORD           dwVersion;
  32.     WCHAR          *pwszField1;
  33.     WCHAR          *pwszField2;
  34.     LONG            lField3;
  35.     CRYPT_DATA_BLOB blobField4;
  36.     FILETIME        dateField5;
  37. } CERT_SAMPLE_STRUCTURE1_INFO;
  38.  
  39. typedef struct _CERT_SAMPLE_STRUCTURE2_INFO
  40. {
  41.     DWORD           dwVersion;
  42.     LONG            lField1;
  43.     WCHAR          *pwszField2;
  44.     FILETIME        dateField3;
  45. } CERT_SAMPLE_STRUCTURE2_INFO;
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51. #pragma option pop /*P_O_Pop*/
  52. #endif // __CERTEXT_H__
  53.