Skip to content

Commit ae51e05

Browse files
committed
upstream: very basic testing of multiple files in RevokedKeys and
RevokedHostkeys OpenBSD-Regress-ID: 6cee76bcc4bd6840bc8d39dd0d32d724e1427aa7
1 parent 2f51e29 commit ae51e05

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

regress/cert-hostkey.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: cert-hostkey.sh,v 1.30 2025/12/22 03:36:43 djm Exp $
1+
# $OpenBSD: cert-hostkey.sh,v 1.31 2026/02/11 22:58:23 djm Exp $
22
# Placed in the Public Domain.
33

44
tid="certified host keys"
@@ -143,6 +143,8 @@ for ktype in $PLAIN_TYPES ; do
143143
attempt_connect "$ktype basic connect" "yes"
144144
attempt_connect "$ktype empty KRL" "yes" \
145145
-oRevokedHostKeys=$OBJ/host_krl_empty
146+
attempt_connect "$ktype multiple KRL files" "no" \
147+
-oRevokedHostKeys="/dev/null $OBJ/host_krl_plain"
146148
attempt_connect "$ktype KRL w/ plain key revoked" "no" \
147149
-oRevokedHostKeys=$OBJ/host_krl_plain
148150
attempt_connect "$ktype KRL w/ cert revoked" "no" \

regress/cert-userkey.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $OpenBSD: cert-userkey.sh,v 1.31 2025/12/22 01:50:46 djm Exp $
1+
# $OpenBSD: cert-userkey.sh,v 1.32 2026/02/11 22:58:23 djm Exp $
22
# Placed in the Public Domain.
33

44
tid="certified user keys"
@@ -226,7 +226,8 @@ basic_tests() {
226226
verbose "$tid: ${_prefix} revoked key"
227227
(
228228
cat $OBJ/sshd_proxy_bak
229-
echo "RevokedKeys $OBJ/cert_user_key_revoked"
229+
# Also test multiple RevokedKeys files.
230+
echo "RevokedKeys /dev/null $OBJ/cert_user_key_revoked"
230231
echo "PubkeyAcceptedAlgorithms ${t}"
231232
echo "$extra_sshd"
232233
) > $OBJ/sshd_proxy

0 commit comments

Comments
 (0)