diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-05-08 07:26:13 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-05-08 17:28:28 +1000 |
commit | 8377d5008ad260048192e1e56ad7d15a56d103dd (patch) | |
tree | 75bda542fd3079076a9a9a776c7806e0941e67f0 | |
parent | c28a3436fa8737709ea88e4437f8f23a6ab50359 (diff) |
upstream commit
whitespace at EOL
Upstream-Regress-ID: 9c48911643d5b05173b36a012041bed4080b8554
-rwxr-xr-x | regress/ssh2putty.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/ssh2putty.sh b/regress/ssh2putty.sh index 691db1690..bcf83afe9 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.2 2009/10/06 23:51:49 dtucker Exp $ | 2 | # $OpenBSD: ssh2putty.sh,v 1.3 2015/05/08 07:26:13 djm Exp $ |
3 | 3 | ||
4 | if test "x$1" = "x" -o "x$2" = "x" -o "x$3" = "x" ; then | 4 | if 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,13 +19,13 @@ else | |||
19 | fi | 19 | fi |
20 | 20 | ||
21 | public_exponent=` | 21 | public_exponent=` |
22 | openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | | 22 | openssl rsa -noout -text -in $KEYFILE | grep ^publicExponent | |
23 | sed 's/.*(//;s/).*//' | 23 | sed 's/.*(//;s/).*//' |
24 | ` | 24 | ` |
25 | test $? -ne 0 && exit 1 | 25 | test $? -ne 0 && exit 1 |
26 | 26 | ||
27 | modulus=` | 27 | modulus=` |
28 | openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= | | 28 | openssl rsa -noout -modulus -in $KEYFILE | grep ^Modulus= | |
29 | sed 's/^Modulus=/0x/' | tr A-Z a-z | 29 | sed 's/^Modulus=/0x/' | tr A-Z a-z |
30 | ` | 30 | ` |
31 | test $? -ne 0 && exit 1 | 31 | test $? -ne 0 && exit 1 |