Mon, 03 Oct 2005 03:17:46 +0000
[gaim-migrate @ 13866]
Rewrite of the "transparency" plugin. This should suck less and now offers the option of being opaque on focus. I need to evaluate the "Always on top" functionality of the Buddy List because it may conflict wiht the WinGaim Options plugin.
| 11118 | 1 | #include "module.h" |
| 2 | ||
| 3 | MODULE = Gaim::Cipher PACKAGE = Gaim::Cipher PREFIX = gaim_cipher_ | |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | const gchar * | |
| 7 | gaim_cipher_get_name(cipher) | |
| 8 | Gaim::Cipher cipher | |
| 9 | ||
| 10 | guint | |
| 11 | gaim_cipher_get_capabilities(cipher) | |
| 12 | Gaim::Cipher cipher | |
| 13 | ||
| 14 | gboolean | |
| 15 | gaim_cipher_digest_region(name, data, data_len, in_len, digest, out_len) | |
| 16 | const gchar * name | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
17 | const guchar * data |
| 11130 | 18 | size_t data_len |
| 19 | size_t in_len | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
20 | guchar &digest |
| 11118 | 21 | size_t * out_len |
| 22 | ||
| 23 | Gaim::Cipher | |
| 24 | gaim_ciphers_find_cipher(name) | |
| 25 | gchar * name | |
| 26 | ||
| 27 | Gaim::Cipher | |
| 28 | gaim_ciphers_register_cipher(name, ops) | |
| 29 | gchar * name | |
| 30 | Gaim::Cipher::Ops ops | |
| 31 | ||
| 32 | gboolean | |
| 33 | gaim_ciphers_unregister_cipher(cipher) | |
| 34 | Gaim::Cipher cipher | |
| 35 | ||
| 36 | void | |
| 37 | gaim_ciphers_get_ciphers() | |
| 38 | PREINIT: | |
| 39 | GList *l; | |
| 40 | PPCODE: | |
| 41 | for (l = gaim_ciphers_get_ciphers(); l != NULL; l = l->next) { | |
| 42 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Cipher"))); | |
| 43 | } | |
| 44 | ||
| 45 | gpointer | |
| 46 | gaim_ciphers_get_handle() | |
| 47 | ||
| 48 | void | |
| 49 | gaim_ciphers_init() | |
| 50 | ||
| 51 | void | |
| 52 | gaim_ciphers_uninit() | |
| 53 | ||
| 54 | void | |
| 55 | gaim_cipher_context_set_option(context, name, value) | |
| 56 | Gaim::Cipher::Context context | |
| 57 | gchar *name | |
| 58 | gpointer value | |
| 59 | ||
| 60 | gpointer | |
| 61 | gaim_cipher_context_get_option(context, name) | |
| 62 | Gaim::Cipher::Context context | |
| 63 | gchar *name | |
| 64 | ||
| 65 | Gaim::Cipher::Context | |
| 66 | gaim_cipher_context_new(cipher, extra) | |
| 67 | Gaim::Cipher cipher | |
| 68 | void *extra | |
| 69 | ||
| 70 | Gaim::Cipher::Context | |
| 71 | gaim_cipher_context_new_by_name(name, extra) | |
| 72 | gchar *name | |
| 73 | void *extra | |
| 74 | ||
| 75 | void | |
| 76 | gaim_cipher_context_reset(context, extra) | |
| 77 | Gaim::Cipher::Context context | |
| 78 | gpointer extra | |
| 79 | ||
| 80 | void | |
| 81 | gaim_cipher_context_destroy(context) | |
| 82 | Gaim::Cipher::Context context | |
| 83 | ||
| 84 | void | |
| 85 | gaim_cipher_context_set_iv(context, iv, len) | |
| 86 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
87 | guchar * iv |
| 11118 | 88 | size_t len |
| 89 | ||
| 90 | void | |
| 91 | gaim_cipher_context_append(context, data, len) | |
| 92 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
93 | guchar * data |
| 11118 | 94 | size_t len |
| 95 | ||
| 96 | gboolean | |
| 97 | gaim_cipher_context_digest(context, in_len, digest, out_len) | |
| 98 | Gaim::Cipher::Context context | |
| 99 | size_t in_len | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
100 | guchar &digest |
| 11118 | 101 | size_t &out_len |
| 102 | ||
| 103 | gboolean | |
| 104 | gaim_cipher_context_digest_to_str(context, in_len, digest_s, out_len) | |
| 105 | Gaim::Cipher::Context context | |
| 106 | size_t in_len | |
|
11202
d5aa331fe940
[gaim-migrate @ 13330]
Mark Doliner <markdoliner@pidgin.im>
parents:
11183
diff
changeset
|
107 | gchar &digest_s |
| 11118 | 108 | size_t &out_len |
| 109 | ||
| 110 | gint | |
| 111 | gaim_cipher_context_encrypt(context, data, len, output, outlen) | |
| 112 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
113 | guchar &data |
| 11118 | 114 | size_t len |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
115 | guchar &output |
| 11118 | 116 | size_t &outlen |
| 117 | ||
| 118 | gint | |
| 119 | gaim_cipher_context_decrypt(context, data, len, output, outlen) | |
| 120 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
121 | guchar &data |
| 11118 | 122 | size_t len |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
123 | guchar &output |
| 11118 | 124 | size_t &outlen |
| 125 | ||
| 126 | void | |
| 127 | gaim_cipher_context_set_salt(context, salt) | |
| 128 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
129 | guchar *salt |
| 11118 | 130 | |
| 131 | size_t | |
| 132 | gaim_cipher_context_get_salt_size(context) | |
| 133 | Gaim::Cipher::Context context | |
| 134 | ||
| 135 | void | |
| 136 | gaim_cipher_context_set_key(context, key) | |
| 137 | Gaim::Cipher::Context context | |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
138 | guchar *key |
| 11118 | 139 | |
| 140 | size_t | |
| 141 | gaim_cipher_context_get_key_size(context) | |
| 142 | Gaim::Cipher::Context context | |
| 143 | ||
| 144 | void | |
| 145 | gaim_cipher_context_set_data(context, data) | |
| 146 | Gaim::Cipher::Context context | |
| 147 | gpointer data | |
| 148 | ||
| 149 | gpointer | |
| 150 | gaim_cipher_context_get_data(context) | |
| 151 | Gaim::Cipher::Context context | |
| 152 |