Changeset 8f000b7 in mod_gnutls


Ignore:
Timestamp:
Jun 12, 2020, 5:14:00 PM (5 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master
Children:
8d0efdc
Parents:
2c94b65
Message:

Deprecate SRP and disable it by default

GnuTLS hasn't anounced a schedule yet, but removal is planned unless
the specification is updated, see:
https://gitlab.com/gnutls/gnutls/-/issues/201

I'm not aware of any use in practice either.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r2c94b65 r8f000b7  
    5959
    6060AC_ARG_ENABLE(srp,
    61        AS_HELP_STRING([--disable-srp],
    62                [unconditionally disable the SRP functionality]),
    63        use_srp=$enableval, use_srp=yes)
     61       AS_HELP_STRING([--enable-srp],
     62               [enable SRP functionality if supported by libgnutls]),
     63       use_srp=$enableval, use_srp=no)
    6464
    6565# check if the available GnuTLS library supports SRP
    6666AC_SEARCH_LIBS([gnutls_srp_server_get_username], [gnutls], [], [use_srp="no"])
    6767
     68AC_MSG_CHECKING([whether to enable SRP functionality])
     69AC_MSG_RESULT($use_srp)
     70
    6871GNUTLS_FEAT_CFLAGS=""
    69 if test "$use_srp" != "no"; then
     72AS_IF([test "${use_srp}" != "no"], [
    7073        GNUTLS_FEAT_CFLAGS="-DENABLE_SRP=1"
    71 fi
     74        AC_MSG_WARN([You have enabled SRP support. This feature is deprecated and will be removed in a future release.])
     75])
    7276
    7377AC_ARG_ENABLE(strict,
     
    8084        STRICT_CFLAGS="-Wall -Werror -Wextra -Wno-error=deprecated-declarations"
    8185fi
    82 
    83 AC_MSG_CHECKING([whether to enable SRP functionality])
    84 AC_MSG_RESULT($use_srp)
    8586
    8687MOD_GNUTLS_DEBUG=0
Note: See TracChangeset for help on using the changeset viewer.