diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/pki.h | 2 | ||||
-rw-r--r-- | include/libssh/pki_priv.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 2904192..3e908a6 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -68,6 +68,8 @@ int ssh_pki_export_signature_blob(const ssh_signature sign, int ssh_pki_import_signature_blob(const ssh_string sig_blob, const ssh_key pubkey, ssh_signature *psig); +int ssh_pki_signature_verify_blob(ssh_session session, + ssh_string sig_blob); /* SSH Public Key Functions */ ssh_string ssh_pki_export_pubkey_blob(const ssh_key key); diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index e86a96c..3e1ef5d 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -55,6 +55,11 @@ 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); +int pki_signature_verify(ssh_session session, + const ssh_signature sig, + const ssh_key key, + const unsigned char *hash, + size_t len); /* SSH Signing Functions */ struct signature_struct *pki_do_sign(const ssh_key privatekey, |