aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/pki.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-07 19:53:03 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-08 15:28:31 +0200
commitbec483bc1874909be8fd9c8fbc909f53be5ba27a (patch)
treefd00ee7897dbe20e96e1772e30654a44c1eac728 /include/libssh/pki.h
parentf81444bd57095cf8ff8e76b50f662aad0757f574 (diff)
downloadlibssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.tar.gz
libssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.tar.xz
libssh-bec483bc1874909be8fd9c8fbc909f53be5ba27a.zip
pki: Add ssh_pki_import_pubkey_base64().
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r--include/libssh/pki.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index 615b7c0f..49f8a5eb 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -62,6 +62,14 @@ ssh_key pki_private_key_from_base64(ssh_session session,
const char *b64_key,
const char *passphrase);
ssh_key pki_publickey_from_privatekey(ssh_key privkey);
+int pki_pubkey_build_dss(ssh_key key,
+ ssh_string p,
+ ssh_string q,
+ ssh_string g,
+ ssh_string pubkey);
+int pki_pubkey_build_rsa(ssh_key key,
+ ssh_string e,
+ ssh_string n);
struct signature_struct *pki_do_sign(ssh_key privatekey,
const unsigned char *hash);