]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
- (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
authorDarren Tucker <dtucker@zip.com.au>
Sun, 10 Nov 2013 09:25:22 +0000 (20:25 +1100)
committerDarren Tucker <dtucker@zip.com.au>
Sun, 10 Nov 2013 09:25:22 +0000 (20:25 +1100)
   querying the ones that are compiled in.

ChangeLog
regress/keytype.sh

index e22ac3cd46da6b7dba5e28d49741633a546a9daa..3fd51a6bc44be387433d14adde6c42ed36d2d328 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20131110
+ - (dtucker) [regress/keytype.sh] Populate ECDSA key types to be tested by
+   querying the ones that are compiled in.
+
 20131109
  - (dtucker) OpenBSD CVS Sync
    - dtucker@cvs.openbsd.org 2013/11/09 05:41:34
index 59586bf0d3d4287274c00542ae8c69963f6e5d0c..65436b2c01fead96e43c3f8d02e660a94dba0e4b 100644 (file)
@@ -12,9 +12,13 @@ cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak
 cp $OBJ/ssh_proxy $OBJ/ssh_proxy_bak
 
 ktypes="dsa-1024 rsa-2048 rsa-3072"
-if test "$TEST_SSH_ECC" = "yes"; then
-       ktypes="$ktypes ecdsa-256 ecdsa-384 ecdsa-521"
-fi
+for i in `$SSH -Q key`; do
+       case "$i" in
+               ecdsa-sha2-nistp256)    ktype="$ktype ecdsa-256" ;;
+               ecdsa-sha2-nistp384)    ktype="$ktype ecdsa-384" ;;
+               ecdsa-sha2-nistp521)    ktype="$ktype ecdsa-521" ;;
+       esac
+done
 
 for kt in $ktypes; do 
        rm -f $OBJ/key.$kt