Lines Matching refs:expected

25 struct expected {
38 const struct expected *expected;
50 * against an array of expected entries.
56 const struct expected *expected;
67 expected = ctx->expected + ctx->i++;
71 if (ctx->match_host_p && expected->match_host_p)
73 if (ctx->match_host_s && expected->match_host_s)
75 if (ctx->match_ipv4 && expected->match_ipv4)
77 if (ctx->match_ipv6 && expected->match_ipv6)
80 expected_status = (parse_key || expected->no_parse_status < 0) ?
81 expected->l.status : (u_int)expected->no_parse_status;
82 expected_match = expected->l.match;
84 if (ctx->x && expected->x) { \
85 expected_match |= expected->x; \
90 expected_keytype = (parse_key || expected->no_parse_keytype < 0) ?
91 expected->l.keytype : expected->no_parse_keytype;
94 if (parse_key && (expected->l.keytype == KEY_RSA1 ||
95 expected->no_parse_keytype == KEY_RSA1)) {
102 if (expected->l.keytype == KEY_ECDSA ||
103 expected->no_parse_keytype == KEY_ECDSA) {
116 ASSERT_LONG_LONG_EQ(l->linenum, expected->l.linenum);
120 if (expected->l.line != NULL)
121 ASSERT_STRING_EQ(l->line, expected->l.line);
122 ASSERT_INT_EQ(l->marker, expected->l.marker);
124 if (expected->l.hosts != NULL)
125 ASSERT_STRING_EQ(l->hosts, expected->l.hosts);
127 if (expected->l.rawkey != NULL)
128 ASSERT_STRING_EQ(l->rawkey, expected->l.rawkey);
132 if (expected->l.key == NULL)
134 if (expected->l.key != NULL) {
136 ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1);
139 if (parse_key && !(l->comment == NULL && expected->l.comment == NULL))
140 ASSERT_STRING_EQ(l->comment, expected->l.comment);
144 /* Loads public keys for a set of expected results */
146 prepare_expected(struct expected *expected, size_t n)
151 if (expected[i].key_file == NULL)
154 if (expected[i].l.keytype == KEY_RSA1)
158 if (expected[i].l.keytype == KEY_ECDSA)
162 test_data_file(expected[i].key_file), &expected[i].l.key,
167 struct expected expected_full[] = {
977 ctx.expected = expected_full;
987 ctx.expected = expected_full;
997 ctx.expected = expected_full;
1008 ctx.expected = expected_full;
1019 ctx.expected = expected_full;
1030 ctx.expected = expected_full;
1041 ctx.expected = expected_full;
1051 ctx.expected = expected_full;
1061 ctx.expected = expected_full;
1072 ctx.expected = expected_full;
1083 ctx.expected = expected_full;
1094 ctx.expected = expected_full;
1105 ctx.expected = expected_full;
1115 ctx.expected = expected_full;
1125 ctx.expected = expected_full;
1137 ctx.expected = expected_full;
1149 ctx.expected = expected_full;
1161 ctx.expected = expected_full;