aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/wrapper.h
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-08-07 12:17:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-31 14:18:34 +0200
commitfa60827840d893187c32a6de538c3955b46256ac (patch)
tree17ec533fc97327d2754813a63c6220f2af7f5fcb /include/libssh/wrapper.h
parent761225712a28d70adea7a2b872c265bc98a83511 (diff)
downloadlibssh-fa60827840d893187c32a6de538c3955b46256ac.tar.gz
libssh-fa60827840d893187c32a6de538c3955b46256ac.tar.xz
libssh-fa60827840d893187c32a6de538c3955b46256ac.zip
pki: Support RSA verification using different hash algorithms
This changes the private API by adding one more argument to function pki_signature_from_blob() Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/wrapper.h')
-rw-r--r--include/libssh/wrapper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/wrapper.h b/include/libssh/wrapper.h
index 62a974fd..23d98afc 100644
--- a/include/libssh/wrapper.h
+++ b/include/libssh/wrapper.h
@@ -27,6 +27,13 @@
#include "libssh/libgcrypt.h"
#include "libssh/libmbedcrypto.h"
+enum ssh_digest_e {
+ SSH_DIGEST_AUTO=0,
+ SSH_DIGEST_SHA1=1,
+ SSH_DIGEST_SHA256,
+ SSH_DIGEST_SHA512
+};
+
enum ssh_mac_e {
SSH_MAC_SHA1=1,
SSH_MAC_SHA256,