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.

77 lines
1.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // eapdnary.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // This file declares the namespace EAPTranslator.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 01/15/1998 Original version.
  16. // 05/08/1998 Do not restrict to attributes defined in raseapif.h.
  17. // Allow filtering of translated attributes.
  18. // 08/26/1998 Converted to a namespace.
  19. //
  20. ///////////////////////////////////////////////////////////////////////////////
  21. #ifndef _EAPDNARY_H_
  22. #define _EAPDNARY_H_
  23. #include <raseapif.h>
  24. #include <iastlutl.h>
  25. using namespace IASTL;
  26. ///////////////////////////////////////////////////////////////////////////////
  27. //
  28. // NAMESPACE
  29. //
  30. // EAPTranslator
  31. //
  32. // DESCRIPTION
  33. //
  34. // This namespace contains methods for translating attributes between IAS
  35. // and RAS format.
  36. //
  37. ///////////////////////////////////////////////////////////////////////////////
  38. namespace EAPTranslator
  39. {
  40. // Must be called prior to using any of the translate methods.
  41. HRESULT initialize() throw ();
  42. void finalize() throw ();
  43. //////////
  44. // Methods to translate a single attribute.
  45. //////////
  46. BOOL translate(
  47. IASAttribute& dst,
  48. const RAS_AUTH_ATTRIBUTE& src
  49. );
  50. BOOL translate(
  51. RAS_AUTH_ATTRIBUTE& dst,
  52. const IASATTRIBUTE& src
  53. );
  54. //////////
  55. // Methods to translate an array of attributes.
  56. //////////
  57. void translate(
  58. IASAttributeVector& dst,
  59. const RAS_AUTH_ATTRIBUTE* src
  60. );
  61. void translate(
  62. PRAS_AUTH_ATTRIBUTE dst,
  63. const IASAttributeVector& src,
  64. DWORD filter = 0xFFFFFFFF
  65. );
  66. }
  67. #endif // _EAPDNARY_H_