diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/configure.in b/configure.in index 69db290c4..de3a2fb8f 100644 --- a/configure.in +++ b/configure.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.in,v 1.260 2001/02/28 22:16:12 djm Exp $ | 1 | # $Id: configure.in,v 1.261 2001/03/03 13:29:21 djm Exp $ |
2 | 2 | ||
3 | AC_INIT(ssh.c) | 3 | AC_INIT(ssh.c) |
4 | 4 | ||
@@ -1266,13 +1266,24 @@ AC_ARG_WITH(random, | |||
1266 | ] | 1266 | ] |
1267 | ) | 1267 | ) |
1268 | 1268 | ||
1269 | # Check for EGD pool file | 1269 | # Check for PRNGD/EGD pool file |
1270 | AC_ARG_WITH(egd-pool, | 1270 | AC_ARG_WITH(prngd-port, |
1271 | [ --with-egd-pool=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)], | 1271 | [ --with-prngd-port=PORT read entropy from PRNGD/EGD localhost:PORT], |
1272 | [ | ||
1273 | if test ! -z "$withval" -a "x$withval" != "xno" ; then | ||
1274 | PRNGD_PORT="$withval" | ||
1275 | AC_DEFINE_UNQUOTED(PRNGD_PORT, $PRNGD_PORT) | ||
1276 | fi | ||
1277 | ] | ||
1278 | ) | ||
1279 | |||
1280 | # Check for PRNGD/EGD pool file | ||
1281 | AC_ARG_WITH(prngd-socket, | ||
1282 | [ --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)], | ||
1272 | [ | 1283 | [ |
1273 | if test "x$withval" != "xno" ; then | 1284 | if test "x$withval" != "xno" ; then |
1274 | EGD_SOCKET="$withval"; | 1285 | PRNGD_SOCKET="$withval" |
1275 | AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET") | 1286 | AC_DEFINE_UNQUOTED(PRNGD_SOCKET, "$PRNGD_SOCKET") |
1276 | fi | 1287 | fi |
1277 | ], | 1288 | ], |
1278 | [ | 1289 | [ |
@@ -1280,15 +1291,15 @@ AC_ARG_WITH(egd-pool, | |||
1280 | if test -z "$RANDOM_POOL" ; then | 1291 | if test -z "$RANDOM_POOL" ; then |
1281 | AC_MSG_CHECKING(for PRNGD/EGD socket) | 1292 | AC_MSG_CHECKING(for PRNGD/EGD socket) |
1282 | # Insert other locations here | 1293 | # Insert other locations here |
1283 | for egdsock in /var/run/egd-pool /etc/entropy; do | 1294 | for sock in /var/run/egd-pool /etc/entropy; do |
1284 | if test -r $egdsock && $TEST_MINUS_S_SH -c "test -S $egdsock -o -p $egdsock" ; then | 1295 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then |
1285 | EGD_SOCKET="$egdsock" | 1296 | PRNGD_SOCKET="$sock" |
1286 | AC_DEFINE_UNQUOTED(EGD_SOCKET, "$EGD_SOCKET") | 1297 | AC_DEFINE_UNQUOTED(PRNGD_SOCKET, "$PRNGD_SOCKET") |
1287 | break; | 1298 | break; |
1288 | fi | 1299 | fi |
1289 | done | 1300 | done |
1290 | if test ! -z "$EGD_SOCKET" ; then | 1301 | if test ! -z "$PRNGD_SOCKET" ; then |
1291 | AC_MSG_RESULT($EGD_SOCKET) | 1302 | AC_MSG_RESULT($PRNGD_SOCKET) |
1292 | else | 1303 | else |
1293 | AC_MSG_RESULT(not found) | 1304 | AC_MSG_RESULT(not found) |
1294 | fi | 1305 | fi |
@@ -1300,7 +1311,7 @@ AC_ARG_WITH(egd-pool, | |||
1300 | # detect pathnames for entropy gathering commands, if we need them | 1311 | # detect pathnames for entropy gathering commands, if we need them |
1301 | INSTALL_SSH_PRNG_CMDS="" | 1312 | INSTALL_SSH_PRNG_CMDS="" |
1302 | rm -f prng_commands | 1313 | rm -f prng_commands |
1303 | if (test -z "$RANDOM_POOL" && test -z "$EGD_SOCKET") ; then | 1314 | if (test -z "$RANDOM_POOL" && test -z "$PRNGD") ; then |
1304 | # Use these commands to collect entropy | 1315 | # Use these commands to collect entropy |
1305 | OSSH_PATH_ENTROPY_PROG(PROG_LS, ls) | 1316 | OSSH_PATH_ENTROPY_PROG(PROG_LS, ls) |
1306 | OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat) | 1317 | OSSH_PATH_ENTROPY_PROG(PROG_NETSTAT, netstat) |
@@ -1749,8 +1760,10 @@ fi | |||
1749 | if test ! -z "$RANDOM_POOL" ; then | 1760 | if test ! -z "$RANDOM_POOL" ; then |
1750 | RAND_MSG="Device ($RANDOM_POOL)" | 1761 | RAND_MSG="Device ($RANDOM_POOL)" |
1751 | else | 1762 | else |
1752 | if test ! -z "$EGD_SOCKET" ; then | 1763 | if test ! -z "$PRNGD_PORT" ; then |
1753 | RAND_MSG="EGD/PRNGD ($EGD_SOCKET)" | 1764 | RAND_MSG="PRNGD/EGD (port localhost:$PRNGD_PORT)" |
1765 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
1766 | RAND_MSG="PRNGD/EGD (socket $PRNGD_SOCKET)" | ||
1754 | else | 1767 | else |
1755 | RAND_MSG="Builtin (timeout $entropy_timeout)" | 1768 | RAND_MSG="Builtin (timeout $entropy_timeout)" |
1756 | BUILTIN_RNG=1 | 1769 | BUILTIN_RNG=1 |