diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 10:11:05 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-21 10:11:05 +0200 |
commit | 4f19a304d182ada3e67290c61bad47a0a6c16f5b (patch) | |
tree | d415688df25a60b2ce586e4120bfda5274226326 /include/libssh/pki.h | |
parent | ab0354dbb69aa6aa55427ccb8a6e696879b272cf (diff) | |
download | libssh-4f19a304d182ada3e67290c61bad47a0a6c16f5b.tar.gz libssh-4f19a304d182ada3e67290c61bad47a0a6c16f5b.tar.xz libssh-4f19a304d182ada3e67290c61bad47a0a6c16f5b.zip |
pki: Add ssh_pki_export_signature_blob().
Diffstat (limited to 'include/libssh/pki.h')
-rw-r--r-- | include/libssh/pki.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 6c009d5f..dd090d64 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -91,6 +91,8 @@ int ssh_pki_import_pubkey_blob(const ssh_string key_blob, 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); ssh_string ssh_pki_do_sign(ssh_session session, ssh_buffer sigbuf, ssh_key privatekey); @@ -103,6 +105,8 @@ ssh_key pki_private_key_from_base64(const char *b64_key, const char *passphrase, ssh_auth_callback auth_fn, void *auth_data); + +ssh_string pki_signature_to_blob(const ssh_signature sign); struct signature_struct *pki_do_sign(const ssh_key privatekey, const unsigned char *hash); |