aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-21 11:03:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-21 11:03:53 +0200
commita4b2518761c6b68b8a28ea250d58e7257bce6554 (patch)
tree2f81d30583ae47854779e9d914e6104c09ef8e8c /include
parent4f19a304d182ada3e67290c61bad47a0a6c16f5b (diff)
downloadlibssh-a4b2518761c6b68b8a28ea250d58e7257bce6554.tar.gz
libssh-a4b2518761c6b68b8a28ea250d58e7257bce6554.tar.xz
libssh-a4b2518761c6b68b8a28ea250d58e7257bce6554.zip
pki: Add ssh_pki_import_signature_blob().
Diffstat (limited to 'include')
-rw-r--r--include/libssh/pki.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index dd090d64..b0f682b3 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -93,6 +93,9 @@ ssh_string ssh_pki_export_pubkey_blob(const ssh_key key);
int ssh_pki_export_signature_blob(const ssh_signature sign,
ssh_string *sign_blob);
+int ssh_pki_import_signature_blob(const ssh_string sig_blob,
+ const ssh_key pubkey,
+ ssh_signature *psig);
ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf,
ssh_key privatekey);
@@ -107,6 +110,9 @@ ssh_key pki_private_key_from_base64(const char *b64_key,
void *auth_data);
ssh_string pki_signature_to_blob(const ssh_signature sign);
+ssh_signature pki_signature_from_blob(const ssh_key pubkey,
+ const ssh_string sig_blob,
+ enum ssh_keytypes_e type);
struct signature_struct *pki_do_sign(const ssh_key privatekey,
const unsigned char *hash);