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.

49 lines
1.2 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: tunnelpassword.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // CTunnelPassword class
  7. //
  8. //
  9. // History: 4/19/98 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //----------------------------------------------------------------
  15. #include "radpkt.h"
  16. #include "packetradius.h"
  17. #ifndef _TUNNELPASSWORD_H_
  18. #define _TUNNELPASSWORD_H_
  19. //
  20. // declaration of the CTunnelPassword class
  21. //
  22. class CTunnelPassword
  23. {
  24. public:
  25. //
  26. // process Tunnel-Password in out-bound packet
  27. //
  28. HRESULT Process (
  29. /*[in]*/ PACKETTYPE ePacketType,
  30. /*[in]*/ IAttributesRaw *pIAttributesRaw,
  31. /*[in]*/ CPacketRadius *pCPacketRadius
  32. );
  33. private:
  34. //
  35. // Encrypts the Tunnel-Password value
  36. //
  37. static HRESULT EncryptTunnelPassword (
  38. /*[in]*/ CPacketRadius* pCPacketRadius,
  39. /*[in]*/ IAttributesRaw *pIAttributesRaw,
  40. /*[in]*/ PIASATTRIBUTE pAttribute
  41. );
  42. };
  43. #endif //_TUNNELPASSWORD_H_