comparison configure.ac @ 27510:0491bd8a2a60

Enable the weaker MD2 and MD4 with RSA encryption signing algorithms that are now disabled in NSS 3.12.3. This allows signing in without errors on at least MSN, and some XMPP servers. Fixes #9360.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 11 Jul 2009 06:46:21 +0000
parents 552b5292f36f
children a7d2bc001b6b b171a80dff25
comparison
equal deleted inserted replaced
27509:35b6fd563056 27510:0491bd8a2a60
2017 NSS_LIBS="$NSPR_LIBS $NSS_LIBS" 2017 NSS_LIBS="$NSPR_LIBS $NSS_LIBS"
2018 fi 2018 fi
2019 2019
2020 AC_SUBST(NSS_CFLAGS) 2020 AC_SUBST(NSS_CFLAGS)
2021 AC_SUBST(NSS_LIBS) 2021 AC_SUBST(NSS_LIBS)
2022 fi
2023
2024 if test "x$enable_nss" = "xyes"; then
2025 AC_MSG_CHECKING(for NSS_SetAlgorithmPolicy)
2026 LIBS_save="$LIBS"
2027 LIBS="$LIBS $NSS_LIBS"
2028 CPPFLAGS_save="$CPPFLAGS"
2029 CPPFLAGS="$CPPFLAGS $NSS_CFLAGS"
2030 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <nss.h>
2031 #include <secmod.h>],
2032 [NSS_SetAlgorithmPolicy(SEC_OID_MD2, 0, 0);])],
2033 [AC_DEFINE([NEED_NSS_WEAK_ALGORITHMS], 1,
2034 [Define if your NSS needs weak algorithms activated with NSS_SetAlgorithmPolicy])
2035 AC_MSG_RESULT(yes)],
2036 [AC_MSG_RESULT(no)])
2037 CPPFLAGS="$CPPFLAGS_save"
2038 LIBS="$LIBS_save"
2022 fi 2039 fi
2023 2040
2024 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes") 2041 AM_CONDITIONAL(USE_NSS, test "x$enable_nss" = "xyes")
2025 2042
2026 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then 2043 if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then