aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/pki.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-13 11:49:06 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-13 12:13:09 +0200
commit0523adf95cdc89c18b28cef3815b0e9f32a759f2 (patch)
treece5d749c74f484d44a552cee5970cde00210654d /include/libssh/pki.h
parent74d755873d24b692300dbd8ea9b91c4c4f03c368 (diff)
downloadlibssh-0523adf95cdc89c18b28cef3815b0e9f32a759f2.tar.gz
libssh-0523adf95cdc89c18b28cef3815b0e9f32a759f2.tar.xz
libssh-0523adf95cdc89c18b28cef3815b0e9f32a759f2.zip
pki: Add ssh_pki_import_pubkey_string().
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r--include/libssh/pki.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index 81414aaa..ca87ddd8 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -71,6 +71,9 @@ int pki_pubkey_build_rsa(ssh_key key,
ssh_string e,
ssh_string n);
+int ssh_pki_import_pubkey_string(ssh_session session,
+ const ssh_string pubkey,
+ ssh_key *pkey);
struct signature_struct *pki_do_sign(const ssh_key privatekey,
const unsigned char *hash);