michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsAuth_h__ michael@0: #define nsAuth_h__ michael@0: michael@0: /* types of packages */ michael@0: enum pType { michael@0: PACKAGE_TYPE_KERBEROS, michael@0: PACKAGE_TYPE_NEGOTIATE, michael@0: PACKAGE_TYPE_NTLM michael@0: }; michael@0: michael@0: #if defined(MOZ_LOGGING) michael@0: #define FORCE_PR_LOG michael@0: #endif michael@0: michael@0: #include "prlog.h" michael@0: michael@0: #if defined( PR_LOGGING ) michael@0: // michael@0: // in order to do logging, the following environment variables need to be set: michael@0: // michael@0: // set NSPR_LOG_MODULES=negotiateauth:4 michael@0: // set NSPR_LOG_FILE=negotiateauth.log michael@0: // michael@0: extern PRLogModuleInfo* gNegotiateLog; michael@0: michael@0: #define LOG(args) PR_LOG(gNegotiateLog, PR_LOG_DEBUG, args) michael@0: #else michael@0: #define LOG(args) michael@0: #endif michael@0: michael@0: #endif /* !defined( nsAuth_h__ ) */