Home
last modified time | relevance | path

Searched refs:sshbuf_set_max_size (Results 1 – 8 of 8) sorted by relevance

/external/openssh/regress/unittests/sshbuf/
Dtest_sshbuf.c54 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 65536), 0); in sshbuf_tests()
166 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 1223), 0); in sshbuf_tests()
200 r = sshbuf_set_max_size(p1, 1000); in sshbuf_tests()
203 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sz), 0); in sshbuf_tests()
227 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 1223), 0); in sshbuf_tests()
Dtest_sshbuf_getput_basic.c106 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 4), 0); in sshbuf_getput_basic_tests()
212 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 8), 0); in sshbuf_getput_basic_tests()
222 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 7), 0); in sshbuf_getput_basic_tests()
241 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 4), 0); in sshbuf_getput_basic_tests()
251 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 3), 0); in sshbuf_getput_basic_tests()
270 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 2), 0); in sshbuf_getput_basic_tests()
280 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 1), 0); in sshbuf_getput_basic_tests()
305 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(x) + 4), 0); in sshbuf_getput_basic_tests()
392 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(x) + 4 - 1), 0); in sshbuf_getput_basic_tests()
Dtest_sshbuf_fuzz.c40 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 16 * 1024), 0); in sshbuf_fuzz_tests()
95 if (sshbuf_set_max_size(p1, r) < 0) in sshbuf_fuzz_tests()
107 ASSERT_INT_EQ(sshbuf_set_max_size(p1, in sshbuf_fuzz_tests()
Dtest_sshbuf_getput_crypto.c96 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 1), 0); in sshbuf_getput_crypto_tests()
120 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 1), 0); in sshbuf_getput_crypto_tests()
144 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn1) + 3), 0); in sshbuf_getput_crypto_tests()
169 ASSERT_INT_EQ(sshbuf_set_max_size(p1, sizeof(expbn2) + 3), 0); in sshbuf_getput_crypto_tests()
Dtest_sshbuf_fixed.c44 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 200), SSH_ERR_BUFFER_READ_ONLY); in sshbuf_fixed()
/external/openssh/
Dsshbuf.h110 int sshbuf_set_max_size(struct sshbuf *buf, size_t max_size);
Dsshbuf.c232 sshbuf_set_max_size(struct sshbuf *buf, size_t max_size) in sshbuf_set_max_size() function
Dauthfile.c120 (dontmax && (r = sshbuf_set_max_size(blob, st.st_size)) != 0)) in sshkey_load_file()