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.

74 lines
2.5 KiB

  1. // ProtCrypt.h -- declaration of CProtectableCrypt
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 2000. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCCI_PROTCRYPT_H)
  8. #define SLBCCI_PROTCRYPT_H
  9. #include "slbCci.h"
  10. #include "CryptObj.h"
  11. namespace cci
  12. {
  13. // Pure virtual mixin for an object that has an ObjectAccess attribute
  14. class CProtectableCrypt
  15. : public CCryptObject
  16. {
  17. public:
  18. // Types
  19. // C'tors/D'tors
  20. virtual
  21. ~CProtectableCrypt() = 0;
  22. // Operators
  23. // Operations
  24. // Access
  25. ObjectAccess
  26. Access() const;
  27. virtual bool
  28. Private() = 0;
  29. // Predicates
  30. protected:
  31. // Types
  32. // C'tors/D'tors
  33. CProtectableCrypt(CAbstractCard const &racard,
  34. ObjectAccess oa);
  35. // Operators
  36. bool
  37. operator==(CProtectableCrypt const &rhs) const;
  38. // TO DO: this should be superceded by implementing singletons
  39. bool
  40. operator!=(CProtectableCrypt const &rhs) const;
  41. // TO DO: this should be superceded by implementing singletons
  42. // Operations
  43. // Access
  44. // Predicates
  45. // Variables
  46. ObjectAccess const m_oa;
  47. private:
  48. // Types
  49. // C'tors/D'tors
  50. // Operators
  51. // Operations
  52. // Access
  53. // Predicates
  54. // Variables
  55. };
  56. } // namespace cci
  57. #endif // SLBCCI_PROTCRYPT_H