Commit 1a9319fc authored by Martti Mela's avatar Martti Mela

added configure flag for enabling NTLM (disabled by default)

darcs-hash:20060421105156-1b897-ba4d662dfa43be6bc5653439994d7c5141bb961c.gz
parent e84eb829
......@@ -81,6 +81,16 @@ else
AC_DEFINE([HAVE_SOFIA_STUN], 1, [Define as 1 if we use STUN library])
fi
dnl Disable NTLM support by default
AC_ARG_ENABLE(ntlm,
[ --enable-ntlm enable NTLM support (disabled)],
, enable_ntlm=no)
if test x$enable_ntlm != xno ; then
AC_DEFINE([HAVE_SOFIA_NTLM], 1, [Define as 1 if we use NTLM library])
fi
AC_DEFINE([HAVE_SRTP], 0, [Define as 1 if we use SRTP])
AC_DEFINE([HAVE_UPNP], 0, [Define as 1 if we use UPnP])
......
......@@ -789,6 +789,8 @@ void auth_info_digest(auth_mod_t *am,
}
#if HAVE_SOFIA_NTLM
/* ====================================================================== */
/* NTLM authentication scheme */
......@@ -1028,6 +1030,8 @@ void auth_info_ntlm(auth_mod_t *am,
}
#endif /* HAVE_SOFIA_NTLM */
/* ====================================================================== */
/* Password database */
......
......@@ -60,13 +60,18 @@ static char const __func__[] = __FUNCTION__;
extern auth_scheme_t auth_scheme_basic[];
extern auth_scheme_t auth_scheme_digest[];
extern auth_scheme_t auth_scheme_delayed[];
#if HAVE_SOFIA_NTLM
extern auth_scheme_t auth_scheme_ntlm[];
#endif
enum { N = 32 };
static auth_scheme_t *schemes[N] = {
auth_scheme_basic,
auth_scheme_digest,
#if HAVE_SOFIA_NTLM
auth_scheme_ntlm,
#endif
auth_scheme_delayed
};
......@@ -135,8 +140,10 @@ auth_mod_t *auth_mod_create(su_root_t *root,
bscheme = auth_scheme_basic;
else if (strcasecmp(base, "Digest") == 0)
bscheme = auth_scheme_digest;
#if HAVE_SOFIA_NTLM
else if (strcasecmp(base, "NTLM") == 0)
bscheme = auth_scheme_ntlm;
#endif
if (base == NULL || bscheme) {
int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment