From 3fa2246938b57a2b110714aaf6b931cbef309ff0 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Mon, 20 Jun 2016 18:41:00 +0200 Subject: 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. --- protocols/jabber/jabber.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/jabber/jabber.h') 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; -- cgit v1.2.3