HomeSort by relevance Sort by last modified time
    Searched refs:ASSERT_INT_EQ (Results 1 - 18 of 18) sorted by null

  /external/openssh/regress/unittests/match/
tests.c 27 ASSERT_INT_EQ(match_pattern("", ""), 1);
28 ASSERT_INT_EQ(match_pattern("", "aaa"), 0);
29 ASSERT_INT_EQ(match_pattern("aaa", ""), 0);
30 ASSERT_INT_EQ(match_pattern("aaa", "aaaa"), 0);
31 ASSERT_INT_EQ(match_pattern("aaaa", "aaa"), 0);
35 ASSERT_INT_EQ(match_pattern("", "*"), 1);
36 ASSERT_INT_EQ(match_pattern("a", "?"), 1);
37 ASSERT_INT_EQ(match_pattern("aa", "a?"), 1);
38 ASSERT_INT_EQ(match_pattern("a", "*"), 1);
39 ASSERT_INT_EQ(match_pattern("aa", "a*"), 1)
    [all...]
  /external/openssh/regress/unittests/sshkey/
test_sshkey.c 46 ASSERT_INT_EQ(sshbuf_put_cstring(b, name), 0);
48 ASSERT_INT_EQ(sshbuf_put_cstring(sect, value), 0);
49 ASSERT_INT_EQ(sshbuf_put_stringb(b, sect), 0);
64 ASSERT_INT_EQ(sshkey_putb(ca_key, ca_buf), 0);
72 ASSERT_INT_EQ(sshkey_putb_plain(k, pk), 0);
73 ASSERT_INT_EQ(sshbuf_skip_string(pk), 0);
77 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gsamsa"), 0);
78 ASSERT_INT_EQ(sshbuf_put_cstring(principals, "gregor"), 0);
89 ASSERT_INT_EQ(sshbuf_put_cstring(b, type), 0);
90 ASSERT_INT_EQ(sshbuf_put_cstring(b, "noncenoncenonce!"), 0); /* nonce *
    [all...]
test_file.c 57 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0);
67 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf,
71 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1);
76 ASSERT_INT_EQ(sshkey_load_public(test_data_file("rsa1_1.pub"), &k2,
79 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1);
106 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0);
122 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf,
126 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1);
132 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k2, NULL), 0);
135 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1)
    [all...]
test_fuzz.c 56 ASSERT_INT_EQ(sshkey_putb(k, buf), 0);
62 ASSERT_INT_EQ(sshkey_from_blob(sshbuf_ptr(buf), sshbuf_len(buf),
81 ASSERT_INT_EQ(sshkey_sign(k, &sig, &l, c, sizeof(c), sig_alg, 0), 0);
86 ASSERT_INT_EQ(sshkey_verify(k, sig, l, c, sizeof(c), 0), 0);
113 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0);
120 ASSERT_INT_EQ(r, 0);
134 ASSERT_INT_EQ(sshkey_parse_public_rsa1_fileblob(buf, &k1, NULL), 0);
141 ASSERT_INT_EQ(r, 0);
155 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0);
162 ASSERT_INT_EQ(r, 0)
    [all...]
common.c 47 ASSERT_INT_EQ(sshkey_load_file(fd, ret), 0);
64 ASSERT_INT_EQ(sshbuf_consume_end(ret, 1), 0);
69 ASSERT_INT_EQ(sshbuf_put_u8(ret, 0), 0);
  /external/openssh/regress/unittests/sshbuf/
test_sshbuf.c 54 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 65536), 0);
69 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0);
70 ASSERT_INT_EQ(sshbuf_consume(p1, 1), SSH_ERR_MESSAGE_INCOMPLETE);
77 ASSERT_INT_EQ(sshbuf_consume_end(p1, 0), 0);
78 ASSERT_INT_EQ(sshbuf_consume_end(p1, 1), SSH_ERR_MESSAGE_INCOMPLETE);
86 ASSERT_INT_EQ(r, 0);
90 ASSERT_INT_EQ(r, 0);
112 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0);
115 ASSERT_INT_EQ(r, SSH_ERR_MESSAGE_INCOMPLETE);
117 ASSERT_INT_EQ(sshbuf_consume(p1, 1), 0)
    [all...]
test_sshbuf_fixed.c 42 ASSERT_INT_EQ(sshbuf_check_reserve(p1, 1), SSH_ERR_BUFFER_READ_ONLY);
43 ASSERT_INT_EQ(sshbuf_reserve(p1, 1, NULL), SSH_ERR_BUFFER_READ_ONLY);
44 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 200), SSH_ERR_BUFFER_READ_ONLY);
45 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), SSH_ERR_BUFFER_READ_ONLY);
55 ASSERT_INT_EQ(sshbuf_get_u8(p1, &c), 0);
58 ASSERT_INT_EQ(sshbuf_get_u32(p1, &i), 0);
61 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s, &l), 0);
74 ASSERT_INT_EQ(sshbuf_put(p1, test_buf, sizeof(test_buf) - 1), 0);
86 ASSERT_INT_EQ(sshbuf_get_u8(p2, &c), 0);
89 ASSERT_INT_EQ(sshbuf_get_u32(p2, &i), 0)
    [all...]
test_sshbuf_getput_basic.c 80 ASSERT_INT_EQ(sshbuf_put(p1, x, 5), 0);
92 ASSERT_INT_EQ(sshbuf_get(p1, d2, 4), 0);
100 ASSERT_INT_EQ(r, SSH_ERR_MESSAGE_INCOMPLETE);
106 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 4), 0);
108 ASSERT_INT_EQ(r, SSH_ERR_NO_BUFFER_SPACE);
116 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0);
118 ASSERT_INT_EQ(sshbuf_get_u64(p1, &v64), 0);
126 ASSERT_INT_EQ(r, SSH_ERR_MESSAGE_INCOMPLETE);
134 ASSERT_INT_EQ(sshbuf_put(p1, x, 10), 0);
136 ASSERT_INT_EQ(sshbuf_get_u32(p1, &v32), 0)
    [all...]
test_sshbuf_misc.c 38 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0);
43 ASSERT_INT_EQ(ferror(out), 0);
55 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0);
66 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0);
77 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0);
78 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x22), 0);
89 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x11), 0);
90 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x22), 0);
91 ASSERT_INT_EQ(sshbuf_put_u8(p1, 0x33), 0);
102 ASSERT_INT_EQ(sshbuf_reserve(p1, 8192, NULL), 0)
    [all...]
test_sshbuf_getput_crypto.c 84 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0);
96 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 1), 0);
98 ASSERT_INT_EQ(r, SSH_ERR_NO_BUFFER_SPACE);
108 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0);
120 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 1), 0);
122 ASSERT_INT_EQ(r, SSH_ERR_NO_BUFFER_SPACE);
132 ASSERT_INT_EQ(sshbuf_put_bignum2(p1, bn), 0);
144 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 3), 0);
146 ASSERT_INT_EQ(r, SSH_ERR_NO_BUFFER_SPACE);
156 ASSERT_INT_EQ(sshbuf_put_bignum2(p1, bn), 0)
    [all...]
test_sshbuf_fuzz.c 40 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 16 * 1024), 0);
107 ASSERT_INT_EQ(sshbuf_set_max_size(p1,
test_sshbuf_getput_fuzz.c 48 ASSERT_INT_EQ(sshbuf_put(p1, blob, len), 0);
  /external/openssh/regress/unittests/bitmap/
tests.c 54 ASSERT_INT_EQ(bitmap_set_bit(b, i), 0);
55 ASSERT_INT_EQ(BN_set_bit(bn, i), 1);
58 ASSERT_INT_EQ(bitmap_set_bit(b, j), 0);
59 ASSERT_INT_EQ(BN_set_bit(bn, j), 1);
62 ASSERT_INT_EQ(bitmap_set_bit(b, k), 0);
63 ASSERT_INT_EQ(BN_set_bit(bn, k), 1);
69 ASSERT_INT_EQ(BN_is_bit_set(bn, n),
75 ASSERT_INT_EQ(BN_num_bits(bn),
77 ASSERT_INT_EQ(BN_num_bytes(bn),
85 ASSERT_INT_EQ(bitmap_to_string(b, bbuf
    [all...]
  /external/openssh/regress/unittests/kex/
test_kex.c 75 ASSERT_INT_EQ(r, 0);
76 ASSERT_INT_EQ(server->kex->done, 1);
77 ASSERT_INT_EQ(client->kex->done, 1);
91 ASSERT_INT_EQ(sshkey_generate(keytype, bits, &private), 0);
95 ASSERT_INT_EQ(sshkey_from_private(private, &public), 0);
105 ASSERT_INT_EQ(ssh_init(&client, 0, &kex_params), 0);
106 ASSERT_INT_EQ(ssh_init(&server, 1, &kex_params), 0);
112 ASSERT_INT_EQ(ssh_add_hostkey(server, private), 0);
113 ASSERT_INT_EQ(ssh_add_hostkey(client, public), 0);
121 ASSERT_INT_EQ(kex_send_kexinit(client), 0)
    [all...]
  /external/openssh/regress/unittests/utf8/
tests.c 27 ASSERT_INT_EQ(len, -1);
29 ASSERT_INT_EQ(width, 0);
48 ASSERT_INT_EQ(len, wantlen);
50 ASSERT_INT_EQ(width, wantwidth);
  /external/openssh/regress/misc/kexfuzz/
kexfuzz.c 144 #define ASSERT_INT_EQ(a, b) \
193 ASSERT_INT_EQ(r, 0);
194 ASSERT_INT_EQ(server->kex->done, 1);
195 ASSERT_INT_EQ(client->kex->done, 1);
212 ASSERT_INT_EQ(sshkey_from_private(prvkey, &pubkey), 0);
222 ASSERT_INT_EQ(ssh_init(&client, 0, &kex_params), 0);
223 ASSERT_INT_EQ(ssh_init(&server, 1, &kex_params), 0);
224 ASSERT_INT_EQ(ssh_init(&server2, 1, NULL), 0);
244 ASSERT_INT_EQ(ssh_add_hostkey(server, prvkey), 0);
245 ASSERT_INT_EQ(ssh_add_hostkey(client, pubkey), 0)
    [all...]
  /external/openssh/regress/unittests/hostkeys/
test_iterate.c 122 ASSERT_INT_EQ(l->marker, expected->l.marker);
130 ASSERT_INT_EQ(l->keytype, expected_keytype);
136 ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1);
161 ASSERT_INT_EQ(sshkey_load_public(
981 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts"),
991 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts"),
1002 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts"),
1013 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts"),
1024 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts"),
1035 ASSERT_INT_EQ(hostkeys_foreach(test_data_file("known_hosts")
    [all...]
  /external/openssh/regress/unittests/test_helper/
test_helper.h 110 #define ASSERT_INT_EQ(a1, a2) \

Completed in 189 milliseconds