]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: LibreSSL change the format for openssl rsa -text output from
authordtucker@openbsd.org <dtucker@openbsd.org>
Mon, 18 Nov 2019 09:15:17 +0000 (09:15 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 18 Nov 2019 09:54:05 +0000 (20:54 +1100)
"publicExponent" to "Exponent" so accept either.  with djm.

OpenBSD-Regress-ID: b7e6c4bf700029a31c98be14600d4472fe0467e6

regress/ssh2putty.sh

index bcf83afe9e9e77f47cca672be7908d750702beb1..d973506b5f27c8b7a2b92f3da53d58534918e227 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $OpenBSD: ssh2putty.sh,v 1.3 2015/05/08 07:26:13 djm Exp $
+#      $OpenBSD: ssh2putty.sh,v 1.4 2019/11/18 09:15:17 dtucker 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 | grep ^publicExponent |
+       openssl rsa -noout -text -in $KEYFILE | egrep '^(public)?Exponent' |
        sed 's/.*(//;s/).*//'
 `
 test $? -ne 0 && exit 1