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.

68 lines
2.3 KiB

  1. // CryptObj.cpp -- implementation of the CCryptObject class
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. 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. #include "CryptObj.h"
  8. using namespace cci;
  9. /////////////////////////// LOCAL/HELPER /////////////////////////////////
  10. /////////////////////////// PUBLIC /////////////////////////////////
  11. // Types
  12. // C'tors/D'tors
  13. // Operators
  14. // Operations
  15. // Access
  16. CCard
  17. CCryptObject::Card()
  18. {
  19. return m_hcard;
  20. }
  21. // Predicates
  22. // Static Variables
  23. /////////////////////////// PROTECTED /////////////////////////////////
  24. // C'tors/D'tors
  25. CCryptObject::CCryptObject(CAbstractCard const &racard)
  26. : m_hcard(CCard(&const_cast<CAbstractCard &>(racard)))
  27. {}
  28. CCryptObject::~CCryptObject()
  29. {}
  30. // Operators
  31. bool
  32. CCryptObject::operator==(CCryptObject const &rhs) const
  33. {
  34. return m_hcard == rhs.m_hcard;
  35. }
  36. bool
  37. CCryptObject::operator!=(CCryptObject const &rhs) const
  38. {
  39. return !(*this == rhs);
  40. }
  41. // Operations
  42. // Access
  43. // Predicates
  44. // Static Variables
  45. /////////////////////////// PRIVATE /////////////////////////////////
  46. // C'tors/D'tors
  47. // Operators
  48. // Operations
  49. // Access
  50. // Predicates
  51. // Static Variables