Home
last modified time | relevance | path

Searched refs:buffer_len (Results 1 – 25 of 51) sorted by relevance

123

/titanic_50/usr/src/cmd/ssh/libssh/common/
H A Dpacket.c511 buffer_len(&compression_buffer)); in packet_send1()
514 len = buffer_len(&outgoing_packet) + 4 - 8; in packet_send1()
531 buffer_len(&outgoing_packet)); in packet_send1()
543 cp = buffer_append_space(&output, buffer_len(&outgoing_packet)); in packet_send1()
545 buffer_len(&outgoing_packet)); in packet_send1()
549 buffer_len(&output)); in packet_send1()
749 buffer_len(&outgoing_packet)); in packet_send2_wrapped()
754 len = buffer_len(&outgoing_packet); in packet_send2_wrapped()
762 buffer_len(&compression_buffer)); in packet_send2_wrapped()
764 buffer_len(&outgoing_packet))); in packet_send2_wrapped()
[all …]
H A Dradix.c72 ret = uuencode(buffer_ptr(&b), buffer_len(&b), (char *)buf, buflen); in creds_to_radix()
82 if (buffer_len(b) == 0) \
126 if (buffer_len(&b) == 0) in radix_to_creds()
130 while (buffer_len(&b) > 0 && (c = buffer_get_char(&b)) != '\0') in radix_to_creds()
133 if (buffer_len(&b) == 0) in radix_to_creds()
141 len = buffer_len(&b); in radix_to_creds()
H A Dcompress.c91 if (buffer_len(input_buffer) == 0) in buffer_compress()
96 outgoing_stream.avail_in = buffer_len(input_buffer); in buffer_compress()
136 incoming_stream.avail_in = buffer_len(input_buffer); in buffer_uncompress()
H A Dchannels.c421 buffer_len(&c->input) > packet_get_maxsize()) { in channel_not_very_much_buffered_data()
423 c->self, buffer_len(&c->input)); in channel_not_very_much_buffered_data()
427 if (buffer_len(&c->output) > packet_get_maxsize()) { in channel_not_very_much_buffered_data()
429 c->self, buffer_len(&c->output), in channel_not_very_much_buffered_data()
562 c->istate, buffer_len(&c->input), in channel_open_message()
563 c->ostate, buffer_len(&c->output), in channel_open_message()
713 if (buffer_len(&c->input) < packet_get_maxsize()) in channel_pre_open_13()
715 if (buffer_len(&c->output) > 0) in channel_pre_open_13()
726 buffer_len(&c->input) < limit && in channel_pre_open()
731 if (buffer_len(&c->output) > 0) { in channel_pre_open()
[all …]
H A Dauthfile.c110 while (buffer_len(&buffer) % 8 != 0) in key_save_private_rsa1()
132 cp = buffer_append_space(&encrypted, buffer_len(&buffer)); in key_save_private_rsa1()
137 buffer_ptr(&buffer), buffer_len(&buffer)); in key_save_private_rsa1()
150 if (write(fd, buffer_ptr(&encrypted), buffer_len(&encrypted)) != in key_save_private_rsa1()
151 buffer_len(&encrypted)) { in key_save_private_rsa1()
382 cp = buffer_append_space(&decrypted, buffer_len(&buffer)); in key_load_private_rsa1()
388 buffer_ptr(&buffer), buffer_len(&buffer)); in key_load_private_rsa1()
H A Dnchan.c148 if (buffer_len(&c->input)) { in chan_ibuf_empty()
212 if (buffer_len(&c->output)) { in chan_obuf_empty()
399 buffer_len(&c->output) == 0 && in chan_rcvd_ieof()
442 buffer_len(&c->extended) > 0) { in chan_is_dead()
444 c->self, c->efd, buffer_len(&c->extended)); in chan_is_dead()
H A Dkexdhc.c118 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexdh_client()
119 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexdh_client()
H A Dkexdhs.c106 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexdh_server()
107 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexdh_server()
H A Dkexgexs.c149 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgex_server()
150 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgex_server()
H A Dkexgexc.c166 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgex_client()
167 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgex_client()
H A Dssh-dss.c95 len = buffer_len(&b); in ssh_dss_sign()
141 rlen = buffer_len(&b); in ssh_dss_verify()
H A Dkex.c96 buffer_append(&b, buffer_ptr(raw), buffer_len(raw)); in kex_buf2prop()
203 if (buffer_len(&kex->my) < KEX_COOKIE_LEN) in kex_send_kexinit()
213 packet_put_raw(buffer_ptr(&kex->my), buffer_len(&kex->my)); in kex_send_kexinit()
635 EVP_DigestUpdate(&md, buffer_ptr(&b), buffer_len(&b)); in derive_key()
649 EVP_DigestUpdate(&md, buffer_ptr(&b), buffer_len(&b)); in derive_key()
H A Dkexgsss.c186 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgss_server()
187 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgss_server()
H A Dkexgssc.c278 buffer_ptr(&kex->my), buffer_len(&kex->my), in kexgss_client()
279 buffer_ptr(&kex->peer), buffer_len(&kex->peer), in kexgss_client()
H A Dttymodes.c327 packet_put_string(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes()
329 packet_put_raw(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes()
H A Dmsg.c39 u_int mlen = buffer_len(m); in ssh_msg_send()
H A Dssh-rsa.c96 len = buffer_len(&b); in ssh_rsa_sign()
142 rlen = buffer_len(&b); in ssh_rsa_verify()
/titanic_50/usr/src/cmd/ssh/sshd/
H A Dserverloop.c172 while (buffer_len(&stderr_buffer) > 0 && in make_packets_from_stderr_data()
174 len = buffer_len(&stderr_buffer); in make_packets_from_stderr_data()
201 while (buffer_len(&stdout_buffer) > 0 && in make_packets_from_stdout_data()
203 len = buffer_len(&stdout_buffer); in make_packets_from_stdout_data()
296 if (buffer_len(&stdin_buffer) < buffer_high && in wait_until_can_do_something()
313 if (fdin != -1 && buffer_len(&stdin_buffer) > 0) in wait_until_can_do_something()
433 dlen = buffer_len(&stdin_buffer); in process_output()
474 if (buffer_len(&stdout_buffer) > 0) { in drain_output()
477 buffer_len(&stdout_buffer)); in drain_output()
480 stdout_bytes += buffer_len(&stdout_buffer); in drain_output()
[all …]
/titanic_50/usr/src/cmd/ssh/ssh/
H A Dclientloop.c378 while (buffer_len(&stdin_buffer) > 0 && in client_make_packets_from_stdin_data()
380 len = buffer_len(&stdin_buffer); in client_make_packets_from_stdin_data()
390 if (stdin_eof && buffer_len(&stdin_buffer) == 0) { in client_make_packets_from_stdin_data()
493 if (buffer_len(&stdout_buffer) < buffer_high && in client_wait_until_can_do_something()
494 buffer_len(&stderr_buffer) < buffer_high && in client_wait_until_can_do_something()
505 if (buffer_len(&stdout_buffer) > 0) in client_wait_until_can_do_something()
507 if (buffer_len(&stderr_buffer) > 0) in client_wait_until_can_do_something()
567 if (buffer_len(bout) > 0) in client_suspend_self()
568 atomicio(write, fileno(stdout), buffer_ptr(bout), buffer_len(bout)); in client_suspend_self()
569 if (buffer_len(berr) > 0) in client_suspend_self()
[all …]
H A Dssh.c578 if (fork_after_authentication_flag && buffer_len(&command) == 0 && !no_shell_flag)
582 if (buffer_len(&command) == 0)
962 if (buffer_len(&command) > 0) {
963 int len = buffer_len(&command);
968 packet_put_string(buffer_ptr(&command), buffer_len(&command));
989 len = buffer_len(&command);
1100 len = buffer_len(&command);
1115 packet_put_string(buffer_ptr(&command), buffer_len(&command));
1229 if (buffer_len(command) > 0) {
H A Dsshconnect2.c423 buffer_len(&command) == 0)) { in input_userauth_banner()
750 g_mic_data.length = buffer_len(&mic_data); in input_gssapi_token()
864 g_mic_data.length = buffer_len(&mic_data); in userauth_gssapi_keyex()
1074 skip = buffer_len(&b); in sign_and_send_pubkey()
1093 buffer_ptr(&b), buffer_len(&b)); in sign_and_send_pubkey()
1122 if (buffer_len(&b) < skip + 1) in sign_and_send_pubkey()
1128 packet_put_raw(buffer_ptr(&b), buffer_len(&b)); in sign_and_send_pubkey()
1551 buffer_ptr(&b), buffer_len(&b)); in userauth_hostbased()
1554 buffer_ptr(&b), buffer_len(&b)); in userauth_hostbased()
1676 if (buffer_len(&b) > 0) in authmethods_get()
/titanic_50/usr/src/lib/libdwarf/common/
H A Ddwarf_sort_line.c126 unsigned long buffer_len, in _dwarf_ld_sort_lines() argument
129 return dwarf_ld_sort_lines(orig_buffer,buffer_len, in _dwarf_ld_sort_lines()
134 unsigned long buffer_len, in dwarf_ld_sort_lines() argument
149 unsigned long remaining_bytes = buffer_len; /* total length of in dwarf_ld_sort_lines()
165 line_ptr = malloc(buffer_len); in dwarf_ld_sort_lines()
171 memcpy(line_ptr, orig_buffer, buffer_len); in dwarf_ld_sort_lines()
214 memcpy(orig_buffer, orig_line_ptr, buffer_len); in dwarf_ld_sort_lines()
/titanic_50/usr/src/cmd/ssh/ssh-agent/
H A Dssh-agent.c216 buffer_put_int(&e->output, buffer_len(&msg)); in process_request_identities()
217 buffer_append(&e->output, buffer_ptr(&msg), buffer_len(&msg)); in process_request_identities()
245 if (buffer_len(&e->request) == 0) in process_authentication_challenge1()
283 buffer_put_int(&e->output, buffer_len(&msg)); in process_authentication_challenge1()
284 buffer_append(&e->output, buffer_ptr(&msg), buffer_len(&msg)); in process_authentication_challenge1()
326 buffer_put_int(&e->output, buffer_len(&msg)); in process_sign_request2()
328 buffer_len(&msg)); in process_sign_request2()
514 while (buffer_len(&e->request)) { in process_add_identity()
589 buffer_put_int(&e->output, buffer_len(&msg)); in no_identities()
590 buffer_append(&e->output, buffer_ptr(&msg), buffer_len(&msg)); in no_identities()
[all …]
/titanic_50/usr/src/cmd/ssh/include/
H A Dchannels.h164 buffer_len(&c->extended) > 0))
168 buffer_len(&c->extended) > 0))
H A Dbuffer.h37 u_int buffer_len(Buffer *);

123