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.

57 lines
1.5 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: validator.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // validator class
  7. //
  8. //
  9. // History: 9/23/97 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //----------------------------------------------------------------
  15. #ifndef _VALIDATOR_H_
  16. #define _VALIDATOR_H_
  17. #include "packetradius.h"
  18. #include "valattrib.h"
  19. #include "clients.h"
  20. #include "hashmd5.h"
  21. #include "reportevent.h"
  22. #include "preprocessor.h"
  23. class CValidator
  24. {
  25. public:
  26. virtual BOOL Init (
  27. /*[in]*/ CValAttributes *pCValAttributes,
  28. /*[in]*/ CPreProcessor *pCPreProcessor,
  29. /*[in]*/ CClients *pCClients,
  30. /*[in]*/ CHashMD5 *pCHashMD5,
  31. /*[in]*/ CReportEvent *pCReportEvent
  32. );
  33. virtual HRESULT ValidateOutPacket (
  34. /*[in]*/ CPacketRadius *pCPacketRadius
  35. );
  36. virtual HRESULT ValidateInPacket (
  37. /*[in]*/ CPacketRadius *pCPacketRadius
  38. );
  39. CValidator();
  40. virtual ~CValidator();
  41. CPreProcessor *m_pCPreProcessor;
  42. CValAttributes *m_pCValAttributes;
  43. CClients *m_pCClients;
  44. CHashMD5 *m_pCHashMD5;
  45. CReportEvent *m_pCReportEvent;
  46. };
  47. #endif // ifndef _VALIDATOR_H_