diff options
author | Dirkjan Bussink <d.bussink@gmail.com> | 2014-04-20 10:07:40 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-22 10:57:00 +0200 |
commit | 262c82ac0661bb0be46477006ed366e401c1620f (patch) | |
tree | f93607b1740c37592ee1f779ebf7cabb8ae9f373 /include | |
parent | 164b8e99cce70c83d2ef3e2c2b832a514a0ac908 (diff) | |
download | libssh-262c82ac0661bb0be46477006ed366e401c1620f.tar.gz libssh-262c82ac0661bb0be46477006ed366e401c1620f.tar.xz libssh-262c82ac0661bb0be46477006ed366e401c1620f.zip |
Add negotiation for SHA2 HMAC algorithms
BUG: https://red.libssh.org/issues/91
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/wrapper.h | 7 |
1 files changed, 7 insertions, 0 deletions
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_ */ |