From d2434c69c008aa1cd3bd488ca6bc524da0e4ca3a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 22 Nov 2018 10:43:18 +0100 Subject: pki: Separate signature extraction and verification Initial solution proposed by Tilo Eckert Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/pki.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 241cfdd1..17c142c1 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -110,11 +110,11 @@ 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, - const ssh_key key, - unsigned char *digest, - size_t dlen); +int ssh_pki_signature_verify(ssh_session session, + ssh_signature sig, + const ssh_key key, + unsigned char *digest, + size_t dlen); /* SSH Public Key Functions */ int ssh_pki_export_pubkey_blob(const ssh_key key, -- cgit v1.2.3