aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-11-22 10:43:18 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-30 16:21:18 +0100
commitd2434c69c008aa1cd3bd488ca6bc524da0e4ca3a (patch)
tree9c7e75f20d783734a4644dcd81cf1766ea62adb6 /include
parent7f83a1efae6a7da19e18268d6298fc11b4e68c57 (diff)
downloadlibssh-d2434c69c008aa1cd3bd488ca6bc524da0e4ca3a.tar.gz
libssh-d2434c69c008aa1cd3bd488ca6bc524da0e4ca3a.tar.xz
libssh-d2434c69c008aa1cd3bd488ca6bc524da0e4ca3a.zip
pki: Separate signature extraction and verification
Initial solution proposed by Tilo Eckert <tilo.eckert@flam.de> Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/pki.h10
1 files changed, 5 insertions, 5 deletions
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,