diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-24 01:36:58 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-09-24 01:36:58 +0200 |
commit | e38f2f933b3f091fa4d9beed917e31f82bcf6a1c (patch) | |
tree | 528ed58a85c5c31ec6d257559af6164d223a06b8 /include/libssh/libssh.h | |
parent | 21d68112b869697a54536086956545543cbe9ec6 (diff) | |
download | libssh-e38f2f933b3f091fa4d9beed917e31f82bcf6a1c.tar.gz libssh-e38f2f933b3f091fa4d9beed917e31f82bcf6a1c.tar.xz libssh-e38f2f933b3f091fa4d9beed917e31f82bcf6a1c.zip |
pki: ssh_pki_generate
for both gcrypt and openssl
Diffstat (limited to 'include/libssh/libssh.h')
-rw-r--r-- | include/libssh/libssh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 2b9aa505..9c60eb3b 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -456,6 +456,8 @@ LIBSSH_API enum ssh_keytypes_e ssh_key_type_from_name(const char *name); LIBSSH_API int ssh_key_is_public(const ssh_key k); LIBSSH_API int ssh_key_is_private(const ssh_key k); +LIBSSH_API int ssh_pki_generate(enum ssh_keytypes_e type, int parameter, + ssh_key *pkey); LIBSSH_API int ssh_pki_import_privkey_base64(const char *b64_key, const char *passphrase, ssh_auth_callback auth_fn, |