diff options
author | Marius Halden <marius.h@lden.org> | 2016-06-20 18:47:48 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-06-20 18:47:48 +0200 |
commit | dfa8de7f224e159bc13edb3743fb42a8f6b03e46 (patch) | |
tree | 5344c693ff1c2f2327f8b8eb7ffaf5109e9b615d /protocols/jabber/jabber.h | |
parent | 88386e0da72759214c4a2aaf0e94aaa92d1faa43 (diff) | |
parent | be819be1b745c4230458f6276eb90375a90acb61 (diff) |
Merge branch 'scram' into patched-master
Diffstat (limited to 'protocols/jabber/jabber.h')
-rw-r--r-- | protocols/jabber/jabber.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/protocols/jabber/jabber.h b/protocols/jabber/jabber.h index d76ee08f..3445e4d7 100644 --- a/protocols/jabber/jabber.h +++ b/protocols/jabber/jabber.h @@ -77,6 +77,16 @@ typedef enum { JCFLAG_ALWAYS_USE_NICKS = 2, } jabber_chat_flags_t; +typedef enum { + JCHALLENGE_DIGEST_MD5, + JCHALLENGE_SCRAM +} jabber_challenge_t; + +typedef enum { + JSCRAM_SHA1 = 0x0001, + JSCRAM_SHA256 = 0x0002 +} jabber_scram_t; + struct jabber_data { struct im_connection *ic; @@ -94,6 +104,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; |