[openssh-commits] [openssh] 01/01: upstream: Add test for ssh-keygen printing of SSHFP records.
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Jul 19 09:24:08 AEST 2021
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 034828820c7e62652e7c48f9ee6b67fb7ba6fa26
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Sun Jul 18 23:10:10 2021 +0000
upstream: Add test for ssh-keygen printing of SSHFP records.
OpenBSD-Regress-ID: fde9566b56eeb980e149bbe157a884838507c46b
---
regress/Makefile | 3 ++-
regress/keygen-sshfp.sh | 15 +++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/regress/Makefile b/regress/Makefile
index ced21a11..26532868 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.110 2020/12/22 06:03:36 djm Exp $
+# $OpenBSD: Makefile,v 1.111 2021/07/18 23:10:10 dtucker Exp $
tests: prep file-tests t-exec unit
@@ -46,6 +46,7 @@ LTESTS= connect \
keygen-change \
keygen-convert \
keygen-moduli \
+ keygen-sshfp \
key-options \
scp \
scp-uri \
diff --git a/regress/keygen-sshfp.sh b/regress/keygen-sshfp.sh
new file mode 100644
index 00000000..2fbfee4f
--- /dev/null
+++ b/regress/keygen-sshfp.sh
@@ -0,0 +1,15 @@
+# $OpenBSD: keygen-sshfp.sh,v 1.1 2021/07/18 23:10:10 dtucker Exp $
+# Placed in the Public Domain.
+
+tid="keygen-sshfp"
+
+trace "keygen fingerprints"
+fp=`${SSHKEYGEN} -r test -f ${SRC}/rsa_openssh.pub | awk '$5=="1"{print $6}'`
+if [ "$fp" != "99c79cc09f5f81069cc017cdf9552cfc94b3b929" ]; then
+ fail "keygen fingerprint sha1"
+fi
+fp=`${SSHKEYGEN} -r test -f ${SRC}/rsa_openssh.pub | awk '$5=="2"{print $6}'`
+if [ "$fp" != \
+ "e30d6b9eb7a4de495324e4d5870b8220577993ea6af417e8e4a4f1c5bf01a9b6" ]; then
+ fail "keygen fingerprint sha256"
+fi
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list