aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.h
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-06-13 01:35:48 +0200
committerMarius Halden <marius.h@lden.org>2016-06-26 14:28:58 +0200
commita110ae7c40ddd8ad099f94d7197848cf26f4511a (patch)
tree1a4ba4cb0c13be1f9fa3e56428bf3622bbd9db66 /protocols/jabber/jabber.h
parent7949d5a9e21f48f4a41522d3c0377d0ea29b3eac (diff)
Add initial support for SCRAM-SHA-1
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r--protocols/jabber/jabber.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h
index d76ee08f..5412a08f 100644
--- a/protocols/jabber/jabber.h
+++ b/protocols/jabber/jabber.h
@@ -77,6 +77,11 @@ typedef enum {
JCFLAG_ALWAYS_USE_NICKS = 2,
} jabber_chat_flags_t;
+typedef enum {
+ JCHALLENGE_DIGEST_MD5,
+ JCHALLENGE_SCRAM
+} jabber_challenge_t;
+
struct jabber_data {
struct im_connection *ic;
@@ -94,6 +99,13 @@ struct jabber_data {
char *me; /* bare jid */
char *internal_jid;
+ struct {
+ jabber_challenge_t type;
+ int scram_algo;
+ char *cnonce;
+ char *server_signature;
+ } challenge;
+
const struct oauth2_service *oauth2_service;
char *oauth2_access_token;