Functions | |
| void | ssh_key_clean (ssh_key key) |
| clean up the key and deallocate all existing keys | |
| void | ssh_key_free (ssh_key key) |
| deallocate a SSH key | |
| int | ssh_key_import_private (ssh_key key, ssh_session session, const char *filename, const char *passphrase) |
| import a key from a file | |
| ssh_key | ssh_key_new (void) |
| creates a new empty SSH key | |
| enum ssh_keytypes_e | ssh_key_type (ssh_key key) |
| returns the type of a ssh key | |
| void ssh_key_clean | ( | ssh_key | key | ) |
clean up the key and deallocate all existing keys
| [in] | key | ssh_key to clean |
| void ssh_key_free | ( | ssh_key | key | ) |
deallocate a SSH key
| [in] | key | ssh_key handle to free |
| int ssh_key_import_private | ( | ssh_key | key, | |
| ssh_session | session, | |||
| const char * | filename, | |||
| const char * | passphrase | |||
| ) |
import a key from a file
| [out] | key | the ssh_key to update |
| [in] | session | The SSH Session to use. If a key decryption callback is set, it will be used to ask for the passphrase. |
| [in] | filename | The filename of the the private key. |
| [in] | passphrase | The passphrase to decrypt the private key. Set to null if none is needed or it is unknown. |
| ssh_key ssh_key_new | ( | void | ) |
creates a new empty SSH key
| enum ssh_keytypes_e ssh_key_type | ( | ssh_key | key | ) |
returns the type of a ssh key
| [in] | key | the ssh_key handle |
SSH_KEYTYPE_UNKNOWN if the type is unknown
1.4.7