Functions | |
| void | string_burn (struct string_struct *s) |
| destroy data in a string so it couldn't appear in a core dump | |
| struct string_struct * | string_copy (struct string_struct *s) |
| Copy a string, return a newly allocated string. | |
| void * | string_data (struct string_struct *s) |
| Get the payload of the string. | |
| int | string_fill (struct string_struct *s, const void *data, size_t len) |
| Fill a string with given data. | |
| void | string_free (struct string_struct *s) |
| deallocate a STRING object | |
| struct string_struct * | string_from_char (const char *what) |
| Creates a ssh stream using a C string. | |
| size_t | string_len (struct string_struct *s) |
| returns the size of a SSH string | |
| struct string_struct * | string_new (size_t size) |
| Creates a new SSH String object. | |
| char * | string_to_char (struct string_struct *s) |
| convert a SSH string to a C nul-terminated string | |
| void string_burn | ( | struct string_struct * | s | ) |
destroy data in a string so it couldn't appear in a core dump
| s | string to burn |
References string_len().
Referenced by publickey_from_privatekey(), and ssh_userauth_password().
| struct string_struct* string_copy | ( | struct string_struct * | s | ) | [read] |
Copy a string, return a newly allocated string.
The caller has to free the string.
| s | String to copy. |
| void* string_data | ( | struct string_struct * | s | ) |
Get the payload of the string.
| s | The string to get the data from. |
| int string_fill | ( | struct string_struct * | s, | |
| const void * | data, | |||
| size_t | len | |||
| ) |
Fill a string with given data.
The string should be big enough.
| s | An allocated string to fill with data. | |
| data | The data to fill the string with. | |
| len | Size of data. |
Referenced by publickey_from_file(), publickey_from_privatekey(), and publickey_to_string().
| void string_free | ( | struct string_struct * | s | ) |
deallocate a STRING object
| s | String to delete |
Referenced by channel_open_forward(), channel_request_env(), channel_request_exec(), channel_request_pty_size(), channel_request_subsystem(), publickey_from_privatekey(), publickey_to_string(), ssh_disconnect(), ssh_userauth_agent_pubkey(), ssh_userauth_autopubkey(), ssh_userauth_none(), ssh_userauth_offer_pubkey(), ssh_userauth_password(), and ssh_userauth_pubkey().
| struct string_struct* string_from_char | ( | const char * | what | ) | [read] |
Creates a ssh stream using a C string.
| what | source 0-terminated C string |
Referenced by channel_open_forward(), channel_request_env(), channel_request_exec(), channel_request_pty_size(), channel_request_subsystem(), publickey_to_string(), ssh_disconnect(), ssh_userauth_agent_pubkey(), ssh_userauth_none(), ssh_userauth_offer_pubkey(), ssh_userauth_password(), and ssh_userauth_pubkey().
| size_t string_len | ( | struct string_struct * | s | ) |
returns the size of a SSH string
| str | the input SSH string |
Referenced by publickey_from_privatekey(), ssh_get_pubkey_hash(), ssh_write_knownhost(), and string_burn().
| struct string_struct* string_new | ( | size_t | size | ) | [read] |
Creates a new SSH String object.
| size | size of the string |
Referenced by publickey_from_file(), publickey_from_privatekey(), and publickey_to_string().
| char* string_to_char | ( | struct string_struct * | s | ) |
convert a SSH string to a C nul-terminated string
| str | the input SSH string |
Referenced by ssh_get_issue_banner().