Functions to handle SSH buffers.
More...
Functions to handle SSH buffers.
void ssh_buffer_free |
( |
struct ssh_buffer_struct * |
buffer | ) |
|
Deallocate a SSH buffer.
- Parameters
-
[in] | buffer | The buffer to free. |
Referenced by publickey_from_file(), publickey_to_string(), ssh_channel_change_pty_size(), ssh_channel_free(), ssh_channel_new(), ssh_channel_open_forward(), ssh_channel_request_env(), ssh_channel_request_exec(), ssh_channel_request_pty_size(), ssh_channel_request_send_signal(), ssh_channel_request_subsystem(), ssh_channel_request_x11(), ssh_forward_cancel(), ssh_forward_listen(), and ssh_free().
void* ssh_buffer_get_begin |
( |
struct ssh_buffer_struct * |
buffer | ) |
|
Get a pointer on the head of a buffer.
- Parameters
-
[in] | buffer | The buffer to get the head pointer. |
- Returns
- A data pointer on the head. It doesn't take the position into account.
- Warning
- Don't expect data to be nul-terminated.
- See Also
- buffer_get_rest()
-
buffer_get_len()
uint32_t ssh_buffer_get_len |
( |
struct ssh_buffer_struct * |
buffer | ) |
|
Get the length of the buffer, not counting position.
- Parameters
-
[in] | buffer | The buffer to get the length from. |
- Returns
- The length of the buffer.
- See Also
- buffer_get()
struct ssh_buffer_struct* ssh_buffer_new |
( |
void |
| ) |
|
|
read |
Create a new SSH buffer.
- Returns
- A newly initialized SSH buffer, NULL on error.
Referenced by publickey_to_string(), ssh_channel_change_pty_size(), ssh_channel_new(), ssh_channel_open_forward(), ssh_channel_request_env(), ssh_channel_request_exec(), ssh_channel_request_pty_size(), ssh_channel_request_send_signal(), ssh_channel_request_subsystem(), ssh_channel_request_x11(), ssh_forward_cancel(), ssh_forward_listen(), and ssh_new().