| 27 /* |
27 /* |
| 28 * Every function in this file is ONLY exposed for tests. |
28 * Every function in this file is ONLY exposed for tests. |
| 29 * DO NOT USE ANYTHING HERE OR YOU WILL BE SENT TO THE PIT OF DESPAIR. |
29 * DO NOT USE ANYTHING HERE OR YOU WILL BE SENT TO THE PIT OF DESPAIR. |
| 30 */ |
30 */ |
| 31 |
31 |
| 32 #include "cipher.h" |
32 #include "hash.h" |
| 33 |
33 |
| 34 /* Per-connection state stored between messages. |
34 /* Per-connection state stored between messages. |
| 35 * This is stored in js->auth_data_mech. |
35 * This is stored in js->auth_data_mech. |
| 36 */ |
36 */ |
| 37 typedef struct { |
37 typedef struct { |
| 38 const char *mech_substr; |
38 const char *mech_substr; |
| 39 PurpleCipher *(*new_cipher)(void); |
39 PurpleHash *(*new_cipher)(void); |
| 40 guint size; |
40 guint size; |
| 41 } JabberScramHash; |
41 } JabberScramHash; |
| 42 |
42 |
| 43 typedef struct { |
43 typedef struct { |
| 44 const JabberScramHash *hash; |
44 const JabberScramHash *hash; |