summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2019-11-21 05:18:48 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2019-11-21 05:18:48 +0000
commitb3a7ed216efe1b4e29383ff02d837547fcae66ec (patch)
tree9f7b678fa87a1131c3625d070142e0b49090b1af /regress/usr.bin
parent32ca2549d4ac6351adcc382945f69a9b75f7a76e (diff)
Remove workaround for broken 'openssl rsa -text' output that
was fixed in libcrypto/rsa/rsa_ameth.c r1.24. ok dtucker inoguchi
Diffstat (limited to 'regress/usr.bin')
-rwxr-xr-xregress/usr.bin/ssh/ssh2putty.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/ssh2putty.sh b/regress/usr.bin/ssh/ssh2putty.sh
index e5b3da69d2e..9f3b33f41cb 100755
--- a/regress/usr.bin/ssh/ssh2putty.sh
+++ b/regress/usr.bin/ssh/ssh2putty.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: ssh2putty.sh,v 1.4 2019/11/18 09:15:17 dtucker Exp $
+# $OpenBSD: ssh2putty.sh,v 1.5 2019/11/21 05:18:47 tb Exp $
if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then
echo "Usage: ssh2putty hostname port ssh-private-key"
@@ -17,7 +17,7 @@ if ! grep -q "BEGIN RSA PRIVATE KEY" $KEYFILE ; then
fi
public_exponent=`
- openssl rsa -noout -text -in $KEYFILE | egrep '^(public)?Exponent' |
+ openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent |
sed 's/.*(//;s/).*//'
`
test $? -ne 0 && exit 1