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.

72 lines
2.6 KiB

  1. // ProtCrypt.cpp -- definition 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. //////////////////////////////////////////////////////////////////////
  8. #include "NoWarning.h"
  9. #include "ProtCrypt.h"
  10. using namespace cci;
  11. /////////////////////////// LOCAL/HELPER /////////////////////////////////
  12. /////////////////////////// PUBLIC /////////////////////////////////
  13. // Types
  14. // C'tors/D'tors
  15. CProtectableCrypt::~CProtectableCrypt()
  16. {}
  17. // Operators
  18. // Operations
  19. // Access
  20. ObjectAccess
  21. CProtectableCrypt::Access() const
  22. {
  23. return m_oa;
  24. }
  25. // Predicates
  26. // Static Variables
  27. /////////////////////////// PROTECTED /////////////////////////////////
  28. // C'tors/D'tors
  29. CProtectableCrypt::CProtectableCrypt(CAbstractCard const &racard,
  30. ObjectAccess oa)
  31. : CCryptObject(racard),
  32. m_oa(oa)
  33. {}
  34. // Operators
  35. bool
  36. CProtectableCrypt::operator==(CProtectableCrypt const &rhs) const
  37. {
  38. return CCryptObject::operator==(rhs) &&
  39. (m_oa == rhs.m_oa);
  40. }
  41. bool
  42. CProtectableCrypt::operator!=(CProtectableCrypt const &rhs) const
  43. {
  44. return !(*this == rhs);
  45. }
  46. // Operations
  47. // Access
  48. // Predicates
  49. // Static Variables
  50. /////////////////////////// PRIVATE /////////////////////////////////
  51. // C'tors/D'tors
  52. // Operators
  53. // Operations
  54. // Access
  55. // Predicates
  56. // Static Variables