aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.h
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-06-20 18:41:00 +0200
committerMarius Halden <marius.h@lden.org>2016-06-26 14:28:58 +0200
commit3fa2246938b57a2b110714aaf6b931cbef309ff0 (patch)
tree795029f29b3cfda958741a548b786053da47b3b8 /protocols/jabber/jabber.h
parent8f02b17f4244f07d60cbedd2db039b616210d1f9 (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.h5
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;