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.

70 lines
1.0 KiB

  1. /*
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. sdpenc.h
  5. Abstract:
  6. Author:
  7. */
  8. #ifndef __SDP_ENCRYPTION_KEY__
  9. #define __SDP_ENCRYPTION_KEY__
  10. #include "sdpcommo.h"
  11. #include "sdpcstrl.h"
  12. #include "sdpbstrl.h"
  13. class _DllDecl SDP_ENCRYPTION_KEY : public SDP_VALUE
  14. {
  15. public:
  16. SDP_ENCRYPTION_KEY();
  17. inline SDP_OPTIONAL_BSTRING &GetKeyType();
  18. inline SDP_OPTIONAL_BSTRING &GetKeyData();
  19. HRESULT SetKey(
  20. IN BSTR KeyType,
  21. IN BSTR *KeyData
  22. );
  23. protected:
  24. virtual BOOL GetField(
  25. OUT SDP_FIELD *&Field,
  26. OUT BOOL &AddToArray
  27. );
  28. virtual void InternalReset();
  29. private:
  30. SDP_OPTIONAL_BSTRING m_KeyType;
  31. SDP_OPTIONAL_BSTRING m_KeyData;
  32. };
  33. inline SDP_OPTIONAL_BSTRING &
  34. SDP_ENCRYPTION_KEY::GetKeyType(
  35. )
  36. {
  37. return m_KeyType;
  38. }
  39. inline SDP_OPTIONAL_BSTRING &
  40. SDP_ENCRYPTION_KEY::GetKeyData(
  41. )
  42. {
  43. return m_KeyData;
  44. }
  45. #endif // __SDP_ENCRYPTION_KEY__