/external/openssh/regress/unittests/sshbuf/ |
D | test_sshbuf.c | 69 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0); in sshbuf_tests() 70 ASSERT_INT_EQ(sshbuf_consume(p1, 1), SSH_ERR_MESSAGE_INCOMPLETE); in sshbuf_tests() 112 ASSERT_INT_EQ(sshbuf_consume(p1, 0), 0); in sshbuf_tests() 114 r = sshbuf_consume(p1, 64); in sshbuf_tests() 117 ASSERT_INT_EQ(sshbuf_consume(p1, 1), 0); in sshbuf_tests() 122 ASSERT_INT_EQ(sshbuf_consume(p1, 2), 0); in sshbuf_tests() 127 r = sshbuf_consume(p1, 2); in sshbuf_tests() 130 ASSERT_INT_EQ(sshbuf_consume(p1, 1), 0); in sshbuf_tests() 132 r = sshbuf_consume(p1, 1); in sshbuf_tests() 181 ASSERT_INT_EQ(sshbuf_consume(p1, 223), 0); in sshbuf_tests()
|
D | test_sshbuf_fuzz.c | 82 sshbuf_consume : sshbuf_consume_end)(p1, r); in sshbuf_fuzz_tests()
|
/external/openssh/ |
D | sshbuf-getput-basic.c | 40 if ((r = sshbuf_consume(buf, len)) < 0) in sshbuf_get() 53 if ((r = sshbuf_consume(buf, 8)) < 0) in sshbuf_get_u64() 66 if ((r = sshbuf_consume(buf, 4)) < 0) in sshbuf_get_u32() 79 if ((r = sshbuf_consume(buf, 2)) < 0) in sshbuf_get_u16() 92 if ((r = sshbuf_consume(buf, 1)) < 0) in sshbuf_get_u8() 230 if (sshbuf_consume(buf, len + 4) != 0) { in sshbuf_get_string_direct() 559 if ((r = sshbuf_consume(buf, len + 4)) != 0 || /* Shouldn't happen */ in sshbuf_froms() 624 if (sshbuf_consume(buf, olen + 4) != 0) { in sshbuf_get_bignum2_bytes_direct()
|
D | ssh-pkcs11-helper.c | 279 if ((r = sshbuf_consume(iqueue, 4)) != 0 || in process() 311 if ((r = sshbuf_consume(iqueue, msg_len - consumed)) != 0) in process() 414 } else if ((r = sshbuf_consume(oqueue, len)) != 0) { in main()
|
D | ssh_api.c | 311 return sshbuf_consume(ssh_packet_get_output(ssh), len); in ssh_output_consume() 372 if ((r = sshbuf_consume(input, j)) != 0) in _ssh_read_banner()
|
D | packet.c | 1102 if ((r = sshbuf_consume(state->outgoing_packet, 5)) != 0) in ssh_packet_send2_wrapped() 1472 (r = sshbuf_consume(state->input, need)) != 0 || in ssh_packet_read_poll2_mux() 1560 if ((r = sshbuf_consume(state->input, block_size)) != 0) in ssh_packet_read_poll2() 1614 if ((r = sshbuf_consume(state->input, aadlen + need + authlen)) != 0) in ssh_packet_read_poll2() 1633 if ((r = sshbuf_consume(state->input, mac->mac_len)) != 0) in ssh_packet_read_poll2() 1658 if ((r = sshbuf_consume(state->incoming_packet, 4 + 1)) != 0 || in ssh_packet_read_poll2() 1981 if ((r = sshbuf_consume(state->output, len)) != 0) in ssh_packet_write_poll()
|
D | channels.c | 1305 if ((r = sshbuf_consume(input, len)) != 0) { in channel_decode_socks4() 1332 if ((r = sshbuf_consume(input, len)) != 0) { in channel_decode_socks4() 1407 if ((r = sshbuf_consume(input, nmethods + 2)) != 0) { in channel_decode_socks5() 1453 if ((r = sshbuf_consume(input, sizeof(s5_req))) != 0) { in channel_decode_socks5() 1459 if ((r = sshbuf_consume(input, 1)) != 0) { in channel_decode_socks5() 1598 if ((r = sshbuf_consume(c->output, have)) != 0) { in channel_before_prepare_select_rdynamic() 1636 if ((r = sshbuf_consume(c->input, len)) != 0) { in channel_before_prepare_select_rdynamic() 2077 if ((r = sshbuf_consume(c->output, len)) != 0) { 2107 if ((r = sshbuf_consume(c->extended, len)) != 0) { 2290 if ((r = sshbuf_consume(c->output, len)) != 0) [all …]
|
D | sshbuf.h | 151 int sshbuf_consume(struct sshbuf *buf, size_t len);
|
D | sshkey-xmss.c | 1025 if ((r = sshbuf_consume(encoded, sizeof(XMSS_MAGIC))) != 0 || in sshkey_xmss_decrypt_state() 1057 if ((r = sshbuf_consume(encoded, encrypted_len + authlen)) != 0) in sshkey_xmss_decrypt_state() 1065 if ((r = sshbuf_consume(decrypted, aadlen)) != 0) in sshkey_xmss_decrypt_state()
|
D | ssh-pkcs11-client.c | 67 if ((r = sshbuf_consume(m, mlen)) != 0) in send_msg()
|
D | sshbuf.c | 366 sshbuf_consume(struct sshbuf *buf, size_t len) in sshbuf_consume() function
|
D | sshsig.c | 108 if ((r = sshbuf_consume(sbuf, sizeof(BEGIN_SIGNATURE)-1)) != 0) { in sshsig_dearmor() 232 (r = sshbuf_consume(buf, (sizeof(MAGIC_PREAMBLE)-1))) != 0 || in sshsig_parse_preamble()
|
D | sftp-server.c | 1488 if ((r = sshbuf_consume(iqueue, 4)) != 0) in process() 1536 (r = sshbuf_consume(iqueue, msg_len - consumed)) != 0) in process() 1758 } else if ((r = sshbuf_consume(oqueue, len)) != 0) { in sftp_server_main()
|
D | krl.c | 1012 if ((r = sshbuf_consume(copy, sizeof(KRL_MAGIC) - 1)) != 0) in ssh_krl_from_blob() 1121 if ((r = sshbuf_consume(copy, sects_off)) != 0) in ssh_krl_from_blob()
|
D | ssh-agent.c | 984 if ((r = sshbuf_consume(sockets[socknum].output, len)) != 0) in handle_conn_write()
|
D | kex.c | 362 if ((r = sshbuf_consume(b, KEX_COOKIE_LEN)) != 0) { /* skip cookie */ in kex_buf2prop()
|
D | sshkey.c | 4056 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 || in private2_decrypt() 4137 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in private2_decrypt() 4277 if ((r = sshbuf_consume(decoded, sizeof(AUTH_MAGIC))) != 0 || in sshkey_parse_private2_pubkey()
|
D | monitor.c | 1276 if ((r = sshbuf_consume(b, session_id2_len)) != 0) in monitor_valid_userblob()
|
D | clientloop.c | 1457 else if ((r = sshbuf_consume(stderr_buffer, len)) != 0) in client_loop()
|
D | sshconnect2.c | 1388 if ((r = sshbuf_consume(b, skip + 1)) != 0) in sign_and_send_pubkey()
|
D | ssh-keygen.c | 467 if ((r = sshbuf_consume(b, bytes)) != 0) in buffer_get_bignum_bits()
|