extensions/auth/nsAuth.h
author Rafael Ávila de Espíndola <respindola@mozilla.com>
Tue, 21 Aug 2012 12:43:33 -0400
changeset 102945 27b3a3e33f9246961a38378d078290c6d1fb928a
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 209080 f06cd735b5b3da53a517d763c179c5fe67a97377
permissions -rw-r--r--
Bug 784381 - Build bustage for comm-central - SHA1.h - Cannot open include file: 'stdint.h. r=ms2ger.

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