summaryrefslogtreecommitdiff
path: root/regress/usr.bin/ssh/test-exec.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2018-03-16 09:06:32 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2018-03-16 09:06:32 +0000
commita843b21bc54bc4704e11d9c13d611e0203528146 (patch)
tree0959e5c1c819b001c3ef25a592b324105070c622 /regress/usr.bin/ssh/test-exec.sh
parent9df5bdb331ed3d6ad0b2f88daae4faf3695dbaf1 (diff)
Tell puttygen to use /dev/urandom instead of /dev/random. On OpenBSD they
are both non-blocking, but on many other -portable platforms it blocks, stalling tests.
Diffstat (limited to 'regress/usr.bin/ssh/test-exec.sh')
-rw-r--r--regress/usr.bin/ssh/test-exec.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh
index 68c8057f331..e1cffbc1fbe 100644
--- a/regress/usr.bin/ssh/test-exec.sh
+++ b/regress/usr.bin/ssh/test-exec.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: test-exec.sh,v 1.61 2017/07/28 10:32:08 dtucker Exp $
+# $OpenBSD: test-exec.sh,v 1.62 2018/03/16 09:06:31 dtucker Exp $
# Placed in the Public Domain.
USER=`id -un`
@@ -362,6 +362,7 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
# Add a PuTTY key to authorized_keys
rm -f ${OBJ}/putty.rsa2
if ! puttygen -t rsa -o ${OBJ}/putty.rsa2 \
+ --random-device=/dev/urandom \
--new-passphrase /dev/null < /dev/null > /dev/null; then
echo "Your installed version of PuTTY is too old to support --new-passphrase; trying without (may require manual interaction) ..." >&2
puttygen -t rsa -o ${OBJ}/putty.rsa2 < /dev/null > /dev/null