Lines Matching refs:host

9 for x in host-a host-b host-c host-d host-e host-f host-a2 host-b2; do
16 host-a|host-b) printf "$x " ;;
17 host-c) printf "@cert-authority $x " ;;
18 host-d) printf "@revoked $x " ;;
19 host-e) printf "host-e* " ;;
20 host-f) printf "host-f,host-g,host-h " ;;
21 host-a2) printf "host-a " ;;
22 host-b2) printf "host-b " ;;
34 echo "host-i " >> $OBJ/kh.invalid
78 expect_key host-a host-a host-a 2
79 expect_key host-a host-a host-a2 20
80 check_find host-a "simple find"
84 expect_key host-c host-c host-c 8 CA
85 check_find host-c "find CA key"
89 expect_key host-d host-d host-d 11 REVOKED
90 check_find host-d "find revoked key"
94 expect_key host-e.somedomain "host-e*" host-e 14
95 check_find host-e.somedomain "find wildcard key"
99 expect_key host-h "host-f,host-g,host-h " host-f 17
100 check_find host-h "find multiple hosts"
102 # Check exit code, known host
103 check_find_exit_code host-a "known host" "-q" "0"
105 # Check exit code, unknown host
106 check_find_exit_code host-aa "unknown host" "-q" "1"
108 # Check exit code, the hash mode, known host
109 check_find_exit_code host-a "known host" "-q -H" "0"
111 # Check exit code, the hash mode, unknown host
112 check_find_exit_code host-aa "unknown host" "-q -H" "1"
128 expect_key host-a host-a host-a
129 expect_key host-a host-a host-a2
130 check_hashed_find host-a "find simple and hash"
134 expect_key host-c host-c host-c "" CA
136 check_find host-c "find simple and hash" -Hq
140 expect_key host-d host-d host-d "" REVOKED
142 check_find host-d "find simple and hash" -Hq
146 expect_key host-e "host-e*" host-e ""
148 check_find host-e "find wildcard key" -Hq
153 expect_key host-f "host-h " host-f
154 expect_key host-g "host-h " host-f
155 expect_key host-h "host-h " host-f
156 check_hashed_find host-h "find multiple hosts"
160 ${SSHKEYGEN} -qf $OBJ/kh.invalid -R host-a 2>/dev/null
165 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-a 2>/dev/null
166 grep -v "^host-a " $OBJ/kh.hosts.orig > $OBJ/kh.expect
171 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-c 2>/dev/null
177 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-d 2>/dev/null
183 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-e.blahblah 2>/dev/null
184 grep -v "^host-e[*] " $OBJ/kh.hosts.orig > $OBJ/kh.expect
189 ${SSHKEYGEN} -qf $OBJ/kh.hosts -R host-h 2>/dev/null
190 grep -v "^host-f," $OBJ/kh.hosts.orig > $OBJ/kh.expect
202 grep "^host-[abfgh]" $OBJ/kh.hosts && fail "original hostnames persist"
208 expect_key host-a host-a host-a
209 expect_key host-a host-a host-a2
210 check_hashed_find host-a "find simple in hashed" $OBJ/kh.hosts
214 expect_key host-h host-h host-f
215 check_hashed_find host-h "find simple in hashed" $OBJ/kh.hosts
219 ${SSHKEYGEN} -qf $OBJ/kh.hashed -R host-a 2>/dev/null
220 ${SSHKEYGEN} -qf $OBJ/kh.hashed -F host-a && fail "found key after hashed remove"