extensions/auth/nsAuth.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/extensions/auth/nsAuth.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef nsAuth_h__
     1.9 +#define nsAuth_h__
    1.10 +
    1.11 +/* types of packages */
    1.12 +enum pType {
    1.13 +     PACKAGE_TYPE_KERBEROS,
    1.14 +     PACKAGE_TYPE_NEGOTIATE,
    1.15 +     PACKAGE_TYPE_NTLM
    1.16 +};
    1.17 +
    1.18 +#if defined(MOZ_LOGGING)
    1.19 +#define FORCE_PR_LOG
    1.20 +#endif
    1.21 +
    1.22 +#include "prlog.h"
    1.23 +
    1.24 +#if defined( PR_LOGGING )
    1.25 +//
    1.26 +// in order to do logging, the following environment variables need to be set:
    1.27 +// 
    1.28 +//      set NSPR_LOG_MODULES=negotiateauth:4
    1.29 +//      set NSPR_LOG_FILE=negotiateauth.log
    1.30 +//
    1.31 +extern PRLogModuleInfo* gNegotiateLog;
    1.32 +
    1.33 +#define LOG(args) PR_LOG(gNegotiateLog, PR_LOG_DEBUG, args)
    1.34 +#else
    1.35 +#define LOG(args)
    1.36 +#endif
    1.37 +
    1.38 +#endif /* !defined( nsAuth_h__ ) */

mercurial