extensions/auth/nsAuth.h
author Terrence Cole <terrence@mozilla.com>
Tue, 28 May 2013 11:23:04 -0700
changeset 157433 6eaf9e414a520fe9fd91f6b50d3436e7913e6182
parent 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 233615 f06cd735b5b3da53a517d763c179c5fe67a97377
permissions -rw-r--r--
Bug 906940 - Exactly root the IsAcceptableThis callback; r=jonco,smaug

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsAuth_h__
#define nsAuth_h__

/* types of packages */
enum pType {
     PACKAGE_TYPE_KERBEROS,
     PACKAGE_TYPE_NEGOTIATE,
     PACKAGE_TYPE_NTLM
};

#if defined(MOZ_LOGGING)
#define FORCE_PR_LOG
#endif

#include "prlog.h"

#if defined( PR_LOGGING )
//
// in order to do logging, the following environment variables need to be set:
// 
//      set NSPR_LOG_MODULES=negotiateauth:4
//      set NSPR_LOG_FILE=negotiateauth.log
//
extern PRLogModuleInfo* gNegotiateLog;

#define LOG(args) PR_LOG(gNegotiateLog, PR_LOG_DEBUG, args)
#else
#define LOG(args)
#endif

#endif /* !defined( nsAuth_h__ ) */