• Home
  • Raw
  • Download

Lines Matching refs:kh

6 rm -f $OBJ/kh.*
10 ${SSHKEYGEN} -qt ed25519 -f $OBJ/kh.$x -C "$x" -N "" || \
13 echo "# $x" >> $OBJ/kh.hosts
24 cat $OBJ/kh.${x}.pub
26 echo "" >> $OBJ/kh.hosts
27 ) >> $OBJ/kh.hosts
33 cat $OBJ/kh.hosts >> $OBJ/kh.invalid
34 echo "host-i " >> $OBJ/kh.invalid
36 cp $OBJ/kh.invalid $OBJ/kh.invalid.orig
37 cp $OBJ/kh.hosts $OBJ/kh.hosts.orig
49 echo "# Host $_host found: line $_line $_mark" >> $OBJ/kh.expect
50 printf "${_marker}$_hosts " >> $OBJ/kh.expect
51 cat $OBJ/kh.${_key}.pub >> $OBJ/kh.expect ||
59 ${SSHKEYGEN} $_keygenopt -f $OBJ/kh.invalid -F $_host > $OBJ/kh.result
60 if ! diff -w $OBJ/kh.expect $OBJ/kh.result ; then
66 rm -f $OBJ/kh.expect
72 rm -f $OBJ/kh.expect
77 rm -f $OBJ/kh.expect
82 rm -f $OBJ/kh.expect
87 rm -f $OBJ/kh.expect
95 test "x$_file" = "x" && _file=$OBJ/kh.invalid
97 sed "s/^[^ ]*/$_host/" > $OBJ/kh.result
98 if ! diff -w $OBJ/kh.expect $OBJ/kh.result ; then
104 rm -f $OBJ/kh.expect
110 rm -f $OBJ/kh.expect
116 rm -f $OBJ/kh.expect
122 rm -f $OBJ/kh.expect
128 rm -f $OBJ/kh.expect
136 cp $OBJ/kh.invalid.orig $OBJ/kh.invalid
137 ${SSHKEYGEN} -qf $OBJ/kh.invalid -R host-a 2>/dev/null
138 diff $OBJ/kh.invalid $OBJ/kh.invalid.orig || fail "remove on invalid succeeded"
141 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
142 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-a 2>/dev/null
143 grep -v "^host-a " $OBJ/kh.hosts.orig > $OBJ/kh.expect
144 diff $OBJ/kh.hosts $OBJ/kh.expect || fail "remove simple"
147 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
148 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-c 2>/dev/null
150 diff $OBJ/kh.hosts $OBJ/kh.hosts.orig || fail "remove CA"
153 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
154 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-d 2>/dev/null
156 diff $OBJ/kh.hosts $OBJ/kh.hosts.orig || fail "remove revoked"
159 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
160 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-e.blahblah 2>/dev/null
161 grep -v "^host-e[*] " $OBJ/kh.hosts.orig > $OBJ/kh.expect
162 diff $OBJ/kh.hosts $OBJ/kh.expect || fail "remove wildcard"
165 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
166 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-h 2>/dev/null
167 grep -v "^host-f," $OBJ/kh.hosts.orig > $OBJ/kh.expect
168 diff $OBJ/kh.hosts $OBJ/kh.expect || fail "remove wildcard"
171 cp $OBJ/kh.invalid.orig $OBJ/kh.invalid
172 ${SSHKEYGEN} -qf $OBJ/kh.invalid -H 2>/dev/null && fail "hash invalid succeeded"
173 diff $OBJ/kh.invalid $OBJ/kh.invalid.orig || fail "invalid file modified"
176 cp $OBJ/kh.hosts.orig $OBJ/kh.hosts
177 ${SSHKEYGEN} -qf $OBJ/kh.hosts -H 2>/dev/null || fail "hash failed"
178 diff $OBJ/kh.hosts.old $OBJ/kh.hosts.orig || fail "backup differs"
179 grep "^host-[abfgh]" $OBJ/kh.hosts && fail "original hostnames persist"
181 cp $OBJ/kh.hosts $OBJ/kh.hashed.orig
184 rm -f $OBJ/kh.expect
187 check_hashed_find host-a "find simple in hashed" $OBJ/kh.hosts
190 rm -f $OBJ/kh.expect
192 check_hashed_find host-h "find simple in hashed" $OBJ/kh.hosts
195 cp $OBJ/kh.hashed.orig $OBJ/kh.hashed
196 ${SSHKEYGEN} -qf $OBJ/kh.hashed -R host-a 2>/dev/null
197 ${SSHKEYGEN} -qf $OBJ/kh.hashed -F host-a && fail "found key after hashed remove"