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.

58 lines
1.6 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corp. All rights reserved.
  4. //
  5. // SYNOPSIS
  6. //
  7. // Declares the class PostEapRestrictions.
  8. //
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef POSTEAP_H
  11. #define POSTEAP_H
  12. #pragma once
  13. #include "iastl.h"
  14. #include "iastlutl.h"
  15. class __declspec(novtable)
  16. __declspec(uuid("01A3BF5C-CC93-4C12-A4C3-09B0BBE7F63F"))
  17. PostEapRestrictions
  18. : public IASTL::IASRequestHandlerSync,
  19. public CComCoClass<PostEapRestrictions, &__uuidof(PostEapRestrictions)>
  20. {
  21. public:
  22. IAS_DECLARE_REGISTRY(PostEapRestrictions, 1, IAS_REGISTRY_AUTO, IASTypeLibrary)
  23. PostEapRestrictions();
  24. // Use compiler-generated version.
  25. // ~PostEapRestrictions() throw ();
  26. private:
  27. virtual IASREQUESTSTATUS onSyncRequest(IRequest* pRequest) throw ();
  28. // Functions for each of the restrictions we enforce.
  29. static bool CheckCertificateEku(IASTL::IASRequest& request);
  30. // Auto-generates the session-timeout attribute.
  31. static void GenerateSessionTimeout(IASTL::IASRequest& request);
  32. // Retrieves an ANSI string from an attribute.
  33. static const char* GetAnsiString(IASATTRIBUTE& attr);
  34. // Default buffer size for retrieving attributes.
  35. typedef IASTL::IASAttributeVectorWithBuffer<16> AttributeVector;
  36. // Not implemented.
  37. PostEapRestrictions(const PostEapRestrictions&);
  38. PostEapRestrictions& operator=(const PostEapRestrictions&);
  39. };
  40. inline PostEapRestrictions::PostEapRestrictions()
  41. {
  42. }
  43. #endif // POSTEAP_H