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.

46 lines
988 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: CryptAttr.hxx
  8. //
  9. // History: 31-Mar-1997 pberkman created
  10. //
  11. //--------------------------------------------------------------------------
  12. #ifndef CRYPTATTR_HXX
  13. #define CRYPTATTR_HXX
  14. #include "Stack.hxx"
  15. class CryptAttribute_
  16. {
  17. public:
  18. CryptAttribute_(void);
  19. virtual ~CryptAttribute_(void);
  20. CRYPT_ATTRIBUTE *Get(void);
  21. BOOL Fill(DWORD cbAttributeData, BYTE *pbAttributeData, char *pszObjId);
  22. private:
  23. CRYPT_ATTRIBUTE sAttribute;
  24. };
  25. class CryptAttributes_
  26. {
  27. public:
  28. CryptAttributes_(void);
  29. virtual ~CryptAttributes_(void);
  30. BOOL Add(CryptAttribute_ *pcCryptAttr);
  31. CRYPT_ATTRIBUTES *Get(void);
  32. private:
  33. Stack_ sStack;
  34. };
  35. #endif // CRYPTATTR_HXX