summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-11-18 09:15:17 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-11-18 20:54:05 +1100
commit64f56f1d1af3947a71a4c391f2c08747d19ee591 (patch)
tree58b21fc02faa49e698410832f61ac1318c8df09f /regress
parent4bfc0503ad94a2a7190686a89649567c20b8534f (diff)
upstream: LibreSSL change the format for openssl rsa -text output from
"publicExponent" to "Exponent" so accept either. with djm. OpenBSD-Regress-ID: b7e6c4bf700029a31c98be14600d4472fe0467e6
Diffstat (limited to 'regress')
-rwxr-xr-xregress/ssh2putty.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/ssh2putty.sh b/regress/ssh2putty.sh
index bcf83afe9..d973506b5 100755
--- a/regress/ssh2putty.sh
+++ b/regress/ssh2putty.sh
@@ -1,5 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2# $OpenBSD: ssh2putty.sh,v 1.3 2015/05/08 07:26:13 djm Exp $ 2# $OpenBSD: ssh2putty.sh,v 1.4 2019/11/18 09:15:17 dtucker Exp $
3 3
4if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then 4if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then
5 echo "Usage: ssh2putty hostname port ssh-private-key" 5 echo "Usage: ssh2putty hostname port ssh-private-key"
@@ -19,7 +19,7 @@ else
19fi 19fi
20 20
21public_exponent=` 21public_exponent=`
22 openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | 22 openssl rsa -noout -text -in $KEYFILE | egrep '^(public)?Exponent' |
23 sed 's/.*(//;s/).*//' 23 sed 's/.*(//;s/).*//'
24` 24`
25test $? -ne 0 && exit 1 25test $? -ne 0 && exit 1