extensions/auth/nsAuth.h
author Birunthan Mohanathas <birunthan@mohanathas.com>
Thu, 10 Oct 2013 16:38:05 -0400
changeset 150393 8b9687f6c60276ac3a92b21682ad932aca504877
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 209080 f06cd735b5b3da53a517d763c179c5fe67a97377
permissions -rw-r--r--
Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (1/2); r=ehsan

/* 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__ ) */