diff options
author | Marius Halden <marius.h@lden.org> | 2016-06-20 18:41:00 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-06-26 14:28:58 +0200 |
commit | 3fa2246938b57a2b110714aaf6b931cbef309ff0 (patch) | |
tree | 795029f29b3cfda958741a548b786053da47b3b8 /protocols/jabber/jabber.h | |
parent | 8f02b17f4244f07d60cbedd2db039b616210d1f9 (diff) |
Add support for SCRAM-SHA-256
With this aproach it will be simple to add any hash to the scram implementation with some simple boilerplate.
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r-- | protocols/jabber/jabber.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h index 5412a08f..3445e4d7 100644 --- a/protocols/jabber/jabber.h +++ b/protocols/jabber/jabber.h @@ -82,6 +82,11 @@ typedef enum { JCHALLENGE_SCRAM } jabber_challenge_t; +typedef enum { + JSCRAM_SHA1 = 0x0001, + JSCRAM_SHA256 = 0x0002 +} jabber_scram_t; + struct jabber_data { struct im_connection *ic; |