diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-11-10 20:25:22 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-11-10 20:25:22 +1100 |
commit | b6a75b0b93b8faa6f79c3a395ab6c71f3f880b80 (patch) | |
tree | 5a5fa293ba6d421418eb82aa1a30a13e9897b614 | |
parent | 2c89430119367eb1bc96ea5ee55de83357e4c926 (diff) |
- (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
querying the ones that are compiled in.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | regress/keytype.sh | 10 |
2 files changed, 11 insertions, 3 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20131110 | ||
2 | - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by | ||
3 | querying the ones that are compiled in. | ||
4 | |||
1 | 20131109 | 5 | 20131109 |
2 | - (dtucker) OpenBSD CVS Sync | 6 | - (dtucker) OpenBSD CVS Sync |
3 | - dtucker@cvs.openbsd.org 2013/11/09 05:41:34 | 7 | - dtucker@cvs.openbsd.org 2013/11/09 05:41:34 |
diff --git a/regress/keytype.sh b/regress/keytype.sh index 59586bf0d..65436b2c0 100644 --- a/regress/keytype.sh +++ b/regress/keytype.sh | |||
@@ -12,9 +12,13 @@ cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak | |||
12 | cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak | 12 | cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak |
13 | 13 | ||
14 | ktypes="dsa-1024 rsa-2048 rsa-3072" | 14 | ktypes="dsa-1024 rsa-2048 rsa-3072" |
15 | if test "$TEST_SSH_ECC" = "yes"; then | 15 | for i in `$SSH -Q key`; do |
16 | ktypes="$ktypes ecdsa-256 ecdsa-384 ecdsa-521" | 16 | case "$i" in |
17 | fi | 17 | ecdsa-sha2-nistp256) ktype="$ktype ecdsa-256" ;; |
18 | ecdsa-sha2-nistp384) ktype="$ktype ecdsa-384" ;; | ||
19 | ecdsa-sha2-nistp521) ktype="$ktype ecdsa-521" ;; | ||
20 | esac | ||
21 | done | ||
18 | 22 | ||
19 | for kt in $ktypes; do | 23 | for kt in $ktypes; do |
20 | rm -f $OBJ/key.$kt | 24 | rm -f $OBJ/key.$kt |