Specify path to PuTTY keys. Portable needs this and it makes no
authordtucker <dtucker@openbsd.org>
Tue, 31 Aug 2021 07:13:59 +0000 (07:13 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 31 Aug 2021 07:13:59 +0000 (07:13 +0000)
difference on OpenBSD, so resync them.

regress/usr.bin/ssh/putty-ciphers.sh
regress/usr.bin/ssh/putty-kex.sh
regress/usr.bin/ssh/putty-transfer.sh

index f26b7d8..752aaf9 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: putty-ciphers.sh,v 1.8 2021/08/31 06:13:23 dtucker Exp $
+#      $OpenBSD: putty-ciphers.sh,v 1.9 2021/08/31 07:13:59 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="putty ciphers"
@@ -20,7 +20,7 @@ for c in aes 3des aes128-ctr aes192-ctr aes256-ctr chacha20 ; do
        echo "Cipher=$c" >> ${OBJ}/.putty/sessions/cipher_$c
 
        rm -f ${COPY}
-       env HOME=$PWD ${PLINK} -load cipher_$c -batch -i putty.rsa2 \
+       env HOME=$PWD ${PLINK} -load cipher_$c -batch -i ${OBJ}/putty.rsa2 \
            cat ${DATA} > ${COPY}
        if [ $? -ne 0 ]; then
                fail "ssh cat $DATA failed"
index 8776779..eb78c0a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: putty-kex.sh,v 1.6 2021/08/31 06:13:23 dtucker Exp $
+#      $OpenBSD: putty-kex.sh,v 1.7 2021/08/31 07:13:59 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="putty KEX"
@@ -19,7 +19,7 @@ for k in dh-gex-sha1 dh-group1-sha1 dh-group14-sha1 ecdh ; do
            ${OBJ}/.putty/sessions/kex_$k
        echo "KEX=$k" >> ${OBJ}/.putty/sessions/kex_$k
 
-       env HOME=$PWD ${PLINK} -load kex_$k -batch -i putty.rsa2 true
+       env HOME=$PWD ${PLINK} -load kex_$k -batch -i ${OBJ}/putty.rsa2 true
        if [ $? -ne 0 ]; then
                fail "KEX $k failed"
        fi
index 8d5c84f..da6f1e3 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: putty-transfer.sh,v 1.8 2021/08/31 06:13:23 dtucker Exp $
+#      $OpenBSD: putty-transfer.sh,v 1.9 2021/08/31 07:13:59 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="putty transfer data"
@@ -26,7 +26,7 @@ for c in $comp; do
            ${OBJ}/.putty/sessions/compression_$c
        echo "Compression=$c" >> ${OBJ}/.putty/sessions/kex_$k
        env HOME=$PWD ${PLINK} -load compression_$c -batch \
-           -i putty.rsa2 cat ${DATA} > ${COPY}
+           -i ${OBJ}/putty.rsa2 cat ${DATA} > ${COPY}
        if [ $? -ne 0 ]; then
                fail "ssh cat $DATA failed"
        fi
@@ -37,7 +37,7 @@ for c in $comp; do
                rm -f ${COPY}
                dd if=$DATA obs=${s} 2> /dev/null | \
                        env HOME=$PWD ${PLINK} -load compression_$c \
-                           -batch -i putty.rsa2 \
+                           -batch -i ${OBJ}/putty.rsa2 \
                            "cat > ${COPY}"
                if [ $? -ne 0 ]; then
                        fail "ssh cat $DATA failed"