1 /* vim:set ts=4 sw=4 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/. */
10 #include "nsIAuthModule.h"
15 #define SECURITY_WIN32 1
20 // The nsNegotiateAuth class provides responses for the GSS-API Negotiate method
21 // as specified by Microsoft in draft-brezak-spnego-http-04.txt
23 // It can also be configured to talk raw NTLM. This implementation of NTLM has
24 // the advantage of being able to access the user's logon credentials. This
25 // implementation of NTLM should only be used for single-signon. It should be
26 // avoided when authenticating over the internet since it may use a lower-grade
27 // version of password hashing depending on the version of Windows being used.
29 class nsAuthSSPI MOZ_FINAL
: public nsIAuthModule
35 nsAuthSSPI(pType package
= PACKAGE_TYPE_NEGOTIATE
);
42 typedef TimeStamp MS_TimeStamp
;
47 nsCString mServiceName
;
48 uint32_t mServiceFlags
;
49 uint32_t mMaxTokenLen
;
56 uint32_t mCertDERLength
;
59 #endif /* nsAuthSSPI_h__ */