comparison src/protocols/simple/simple.h @ 12382:cfc808463763

[gaim-migrate @ 14688] Reimplement HTTP Digest Authentication (RFC 2617) as part of the Cipher API committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 07 Dec 2005 04:50:36 +0000
parents 2f379ed0c26b
children c5acba513363
comparison
equal deleted inserted replaced
12381:29e237c4141b 12382:cfc808463763
23 #ifndef _GAIM_SIMPLE_H 23 #ifndef _GAIM_SIMPLE_H
24 #define _GAIM_SIMPLE_H 24 #define _GAIM_SIMPLE_H
25 25
26 #include <glib.h> 26 #include <glib.h>
27 #include <time.h> 27 #include <time.h>
28
29 #include <cipher.h>
28 #include <prpl.h> 30 #include <prpl.h>
29 #include <digcalc.h> 31
30 #include "sipmsg.h" 32 #include "sipmsg.h"
31 33
32 #define SIMPLE_BUF_INC 1024 34 #define SIMPLE_BUF_INC 1024
33 35
34 struct sip_dialog { 36 struct sip_dialog {
48 time_t resubscribe; 50 time_t resubscribe;
49 }; 51 };
50 52
51 struct sip_auth { 53 struct sip_auth {
52 int type; /* 1 = Digest / 2 = NTLM */ 54 int type; /* 1 = Digest / 2 = NTLM */
53 gchar *nonce; 55 gchar *nonce;
54 gchar *realm; 56 gchar *realm;
55 gchar *target; 57 gchar *target;
56 int nc; 58 int nc;
57 HASHHEX HA1; 59 gchar *digest_session_key;
58 int retries; 60 int retries;
59 }; 61 };
60 62
61 struct simple_account_data { 63 struct simple_account_data {
62 GaimConnection *gc; 64 GaimConnection *gc;