From 262c82ac0661bb0be46477006ed366e401c1620f Mon Sep 17 00:00:00 2001 From: Dirkjan Bussink Date: Sun, 20 Apr 2014 10:07:40 +0000 Subject: Add negotiation for SHA2 HMAC algorithms BUG: https://red.libssh.org/issues/91 Reviewed-by: Andreas Schneider --- include/libssh/wrapper.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/libssh/wrapper.h b/include/libssh/wrapper.h index 44141b78..f2a98bde 100644 --- a/include/libssh/wrapper.h +++ b/include/libssh/wrapper.h @@ -45,6 +45,11 @@ enum ssh_des_e { SSH_DES }; +struct ssh_hmac_struct { + const char* name; + enum ssh_hmac_e hmac_type; +}; + typedef struct ssh_mac_ctx_struct *ssh_mac_ctx; MD5CTX md5_init(void); void md5_update(MD5CTX c, const void *data, unsigned long len); @@ -91,4 +96,6 @@ void crypto_free(struct ssh_crypto_struct *crypto); void ssh_reseed(void); +struct ssh_hmac_struct *ssh_get_hmactab(void); + #endif /* WRAPPER_H_ */ -- cgit