diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-07-23 05:07:17 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2021-07-23 05:07:17 +0000 |
commit | 875ab2c52ac871bd80ee568c8bdd347b2f1bd3e8 (patch) | |
tree | a3ebd99a438d9cd039dfb34bec8f2e64c126a1e8 /regress/usr.bin | |
parent | 24f5451383b6d3ef05f26e63171462dbedc72e0f (diff) |
Test conversion of ed25519 and ecdsa keys too.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/ssh/keygen-convert.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/keygen-convert.sh b/regress/usr.bin/ssh/keygen-convert.sh index 7764955800c..fb11078a59f 100644 --- a/regress/usr.bin/ssh/keygen-convert.sh +++ b/regress/usr.bin/ssh/keygen-convert.sh @@ -1,15 +1,21 @@ -# $OpenBSD: keygen-convert.sh,v 1.3 2021/07/23 04:56:21 dtucker Exp $ +# $OpenBSD: keygen-convert.sh,v 1.4 2021/07/23 05:07:16 dtucker Exp $ # Placed in the Public Domain. tid="convert keys" +ecdsa=0 types="" for i in ${SSH_KEYTYPES}; do case "$i" in ssh-dss) types="$types dsa" ;; ssh-rsa) types="$types rsa" ;; + ssh-ed25519) types="$types ed25519" ;; + ecdsa-sha2-*) ecdsa=1 ;; esac done +if [ "x$ecdsa" = "x1" ]; then + types="$types ecdsa" +fi cat > $OBJ/askpass <<EOD #!/bin/sh |