Mercurial > pidgin
comparison libpurple/cipher.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 5876584828e8 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ | 39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ |
40 | 40 |
41 /** | 41 /** |
42 * Modes for batch encrypters | 42 * Modes for batch encrypters |
43 */ | 43 */ |
44 typedef enum _PurpleCipherBatchMode { | 44 typedef enum { |
45 PURPLE_CIPHER_BATCH_MODE_ECB, | 45 PURPLE_CIPHER_BATCH_MODE_ECB, |
46 PURPLE_CIPHER_BATCH_MODE_CBC | 46 PURPLE_CIPHER_BATCH_MODE_CBC |
47 } PurpleCipherBatchMode; | 47 } PurpleCipherBatchMode; |
48 | 48 |
49 /** | 49 /** |
50 * The operation flags for a cipher | 50 * The operation flags for a cipher |
51 */ | 51 */ |
52 typedef enum _PurpleCipherCaps { | 52 typedef enum { |
53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ | 53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ |
54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ | 54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ |
55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ | 55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ |
56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ | 56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ |
57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ | 57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ |