tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsNTLMAuthModule.h (750B)


      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 
      6 #ifndef nsNTLMAuthModule_h__
      7 #define nsNTLMAuthModule_h__
      8 
      9 #include "nsIAuthModule.h"
     10 #include "nsString.h"
     11 
     12 class nsNTLMAuthModule : public nsIAuthModule {
     13 public:
     14  NS_DECL_ISUPPORTS
     15  NS_DECL_NSIAUTHMODULE
     16 
     17  nsNTLMAuthModule() : mNTLMNegotiateSent(false) {}
     18 
     19  nsresult InitTest();
     20 
     21  static void SetSendLM(bool sendLM);
     22 
     23 protected:
     24  virtual ~nsNTLMAuthModule();
     25 
     26 private:
     27  nsString mDomain;
     28  nsString mUsername;
     29  nsString mPassword;
     30  bool mNTLMNegotiateSent;
     31 };
     32 
     33 #endif  // nsNTLMAuthModule_h__