mirror of
https://github.com/clearml/dropbear
synced 2025-02-14 16:35:05 +00:00
Mention libtom version requirements, check for poly1305 in libtomcrypt
This commit is contained in:
parent
6abf756e51
commit
4216c984ae
@ -531,7 +531,8 @@ AC_CHECK_FUNCS(explicit_bzero memset_s)
|
|||||||
AC_ARG_ENABLE(bundled-libtom,
|
AC_ARG_ENABLE(bundled-libtom,
|
||||||
[ --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists.
|
[ --enable-bundled-libtom Force using bundled libtomcrypt/libtommath even if a system version exists.
|
||||||
--disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist.
|
--disable-bundled-libtom Force using system libtomcrypt/libtommath, fail if it does not exist.
|
||||||
Default is to use system if available, otherwise bundled.],
|
Default is to use system if available, otherwise bundled.
|
||||||
|
Dropbear requires system libtommath >= 1.2.0 and libtomcrypt >= 1.18.0],
|
||||||
[
|
[
|
||||||
if test "x$enableval" = "xyes"; then
|
if test "x$enableval" = "xyes"; then
|
||||||
BUNDLED_LIBTOM=1
|
BUNDLED_LIBTOM=1
|
||||||
@ -539,9 +540,9 @@ AC_ARG_ENABLE(bundled-libtom,
|
|||||||
else
|
else
|
||||||
BUNDLED_LIBTOM=0
|
BUNDLED_LIBTOM=0
|
||||||
AC_CHECK_LIB(tommath, mp_to_ubin, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS",
|
AC_CHECK_LIB(tommath, mp_to_ubin, LIBTOM_LIBS="-ltommath $LIBTOM_LIBS",
|
||||||
[AC_MSG_ERROR([Missing system libtommath and --disable-bundled-libtom was specified])] )
|
[AC_MSG_ERROR([Missing/old system libtommath and --disable-bundled-libtom was specified])] )
|
||||||
AC_CHECK_LIB(tomcrypt, register_cipher, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS",
|
AC_CHECK_LIB(tomcrypt, poly1305_init, LIBTOM_LIBS="-ltomcrypt $LIBTOM_LIBS",
|
||||||
[AC_MSG_ERROR([Missing system libtomcrypt and --disable-bundled-libtom was specified])] )
|
[AC_MSG_ERROR([Missing/old system libtomcrypt and --disable-bundled-libtom was specified])] )
|
||||||
fi
|
fi
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user