]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Remove workaround for broken 'openssl rsa -text' output
authortb@openbsd.org <tb@openbsd.org>
Thu, 21 Nov 2019 05:18:47 +0000 (05:18 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 25 Nov 2019 10:34:20 +0000 (21:34 +1100)
that was fixed in libcrypto/rsa/rsa_ameth.c r1.24.

ok dtucker inoguchi

OpenBSD-Regress-ID: c260edfac177daa8fcce90141587cf04a95c4f5f

regress/ssh2putty.sh

index d973506b5f27c8b7a2b92f3da53d58534918e227..dcb975d952f668d0ff6d0c5836c5ba7ffef46b18 100755 (executable)
@@ -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"
@@ -19,7 +19,7 @@ else
 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