diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-07 14:00:42 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-08 15:28:31 +0200 |
commit | 9569d053d8f419ebd7fcdecd2c6e18ff86e34c86 (patch) | |
tree | 672c98de97f7f1ba2b17a69982a02266b9787da0 /include/libssh/libssh.h | |
parent | 028888719a54794f998cc3572419361a73674929 (diff) | |
download | libssh-9569d053d8f419ebd7fcdecd2c6e18ff86e34c86.tar.gz libssh-9569d053d8f419ebd7fcdecd2c6e18ff86e34c86.tar.xz libssh-9569d053d8f419ebd7fcdecd2c6e18ff86e34c86.zip |
pki: Improve ssh_pki_import_privkey_base64().
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index e6f0847..577ddb7 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -425,8 +425,10 @@ LIBSSH_API enum ssh_keytypes_e ssh_key_type_from_name(const char *name); LIBSSH_API int ssh_key_is_public(ssh_key k); LIBSSH_API int ssh_key_is_private(ssh_key k); -LIBSSH_API int ssh_pki_import_privkey_base64(ssh_key key, ssh_session session, - const char *b64_key, const char *passphrase); +LIBSSH_API int ssh_pki_import_privkey_base64(ssh_session session, + const char *b64_key, + const char *passphrase, + ssh_key *pkey); LIBSSH_API int ssh_userauth_pki_pubkey(ssh_session session, const char *username, ssh_string publickey, ssh_key privatekey); LIBSSH_API void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len); |