nsNTLMAuthModule.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* vim:set ts=2 sw=2 et cindent: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsNTLMAuthModule_h__
  6. #define nsNTLMAuthModule_h__
  7. #include "nsIAuthModule.h"
  8. #include "nsString.h"
  9. class nsNTLMAuthModule : public nsIAuthModule
  10. {
  11. public:
  12. NS_DECL_ISUPPORTS
  13. NS_DECL_NSIAUTHMODULE
  14. nsNTLMAuthModule() {}
  15. nsresult InitTest();
  16. static void SetSendLM(bool sendLM);
  17. protected:
  18. virtual ~nsNTLMAuthModule();
  19. private:
  20. nsString mDomain;
  21. nsString mUsername;
  22. nsString mPassword;
  23. bool mNTLMNegotiateSent;
  24. };
  25. #define NS_NTLMAUTHMODULE_CONTRACTID \
  26. NS_AUTH_MODULE_CONTRACTID_PREFIX "ntlm"
  27. #define NS_NTLMAUTHMODULE_CID \
  28. { /* a4e5888f-4fe4-4632-8e7e-745196ea7c70 */ \
  29. 0xa4e5888f, \
  30. 0x4fe4, \
  31. 0x4632, \
  32. {0x8e, 0x7e, 0x74, 0x51, 0x96, 0xea, 0x7c, 0x70} \
  33. }
  34. #endif // nsNTLMAuthModule_h__