Mercurial > pidgin
annotate libgaim/plugins/perl/common/Cipher.xs @ 15314:4a4e1dfd8716
[gaim-migrate @ 18105]
Can't use new protocol version because of different login scheme. Revert to old version.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Huetsch <markhuetsch> |
|---|---|
| date | Thu, 11 Jan 2007 07:26:28 +0000 |
| parents | b1fcd2fc903a |
| children |
| rev | line source |
|---|---|
| 14192 | 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 | |
| 17 const guchar * data | |
| 18 size_t data_len | |
| 19 size_t in_len | |
| 20 guchar &digest | |
| 21 size_t * out_len | |
| 22 | |
| 23 MODULE = Gaim::Cipher PACKAGE = Gaim::Ciphers PREFIX = gaim_ciphers_ | |
| 24 PROTOTYPES: ENABLE | |
| 25 | |
| 26 Gaim::Cipher | |
| 27 gaim_ciphers_find_cipher(name) | |
| 28 gchar * name | |
| 29 | |
| 30 Gaim::Cipher | |
| 31 gaim_ciphers_register_cipher(name, ops) | |
| 32 gchar * name | |
| 33 Gaim::Cipher::Ops ops | |
| 34 | |
| 35 gboolean | |
| 36 gaim_ciphers_unregister_cipher(cipher) | |
| 37 Gaim::Cipher cipher | |
| 38 | |
| 39 void | |
| 40 gaim_ciphers_get_ciphers() | |
| 41 PREINIT: | |
| 42 GList *l; | |
| 43 PPCODE: | |
| 44 for (l = gaim_ciphers_get_ciphers(); l != NULL; l = l->next) { | |
| 45 XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Cipher"))); | |
| 46 } | |
| 47 | |
|
14717
b1fcd2fc903a
[gaim-migrate @ 17471]
Etan Reisner <pidgin@unreliablesource.net>
parents:
14192
diff
changeset
|
48 Gaim::Handle |
| 14192 | 49 gaim_ciphers_get_handle() |
| 50 | |
| 51 void | |
| 52 gaim_ciphers_init() | |
| 53 | |
| 54 void | |
| 55 gaim_ciphers_uninit() | |
| 56 | |
| 57 MODULE = Gaim::Cipher PACKAGE = Gaim::Cipher::Context PREFIX = gaim_cipher_context_ | |
| 58 PROTOTYPES: ENABLE | |
| 59 | |
| 60 void | |
| 61 gaim_cipher_context_set_option(context, name, value) | |
| 62 Gaim::Cipher::Context context | |
| 63 gchar *name | |
| 64 gpointer value | |
| 65 | |
| 66 gpointer | |
| 67 gaim_cipher_context_get_option(context, name) | |
| 68 Gaim::Cipher::Context context | |
| 69 gchar *name | |
| 70 | |
| 71 Gaim::Cipher::Context | |
| 72 gaim_cipher_context_new(cipher, extra) | |
| 73 Gaim::Cipher cipher | |
| 74 void *extra | |
| 75 | |
| 76 Gaim::Cipher::Context | |
| 77 gaim_cipher_context_new_by_name(name, extra) | |
| 78 gchar *name | |
| 79 void *extra | |
| 80 | |
| 81 void | |
| 82 gaim_cipher_context_reset(context, extra) | |
| 83 Gaim::Cipher::Context context | |
| 84 gpointer extra | |
| 85 | |
| 86 void | |
| 87 gaim_cipher_context_destroy(context) | |
| 88 Gaim::Cipher::Context context | |
| 89 | |
| 90 void | |
| 91 gaim_cipher_context_set_iv(context, iv, len) | |
| 92 Gaim::Cipher::Context context | |
| 93 guchar * iv | |
| 94 size_t len | |
| 95 | |
| 96 void | |
| 97 gaim_cipher_context_append(context, data, len) | |
| 98 Gaim::Cipher::Context context | |
| 99 guchar * data | |
| 100 size_t len | |
| 101 | |
| 102 gboolean | |
| 103 gaim_cipher_context_digest(context, in_len, digest, out_len) | |
| 104 Gaim::Cipher::Context context | |
| 105 size_t in_len | |
| 106 guchar &digest | |
| 107 size_t &out_len | |
| 108 | |
| 109 gboolean | |
| 110 gaim_cipher_context_digest_to_str(context, in_len, digest_s, out_len) | |
| 111 Gaim::Cipher::Context context | |
| 112 size_t in_len | |
| 113 gchar &digest_s | |
| 114 size_t &out_len | |
| 115 | |
| 116 gint | |
| 117 gaim_cipher_context_encrypt(context, data, len, output, outlen) | |
| 118 Gaim::Cipher::Context context | |
| 119 guchar &data | |
| 120 size_t len | |
| 121 guchar &output | |
| 122 size_t &outlen | |
| 123 | |
| 124 gint | |
| 125 gaim_cipher_context_decrypt(context, data, len, output, outlen) | |
| 126 Gaim::Cipher::Context context | |
| 127 guchar &data | |
| 128 size_t len | |
| 129 guchar &output | |
| 130 size_t &outlen | |
| 131 | |
| 132 void | |
| 133 gaim_cipher_context_set_salt(context, salt) | |
| 134 Gaim::Cipher::Context context | |
| 135 guchar *salt | |
| 136 | |
| 137 size_t | |
| 138 gaim_cipher_context_get_salt_size(context) | |
| 139 Gaim::Cipher::Context context | |
| 140 | |
| 141 void | |
| 142 gaim_cipher_context_set_key(context, key) | |
| 143 Gaim::Cipher::Context context | |
| 144 guchar *key | |
| 145 | |
| 146 size_t | |
| 147 gaim_cipher_context_get_key_size(context) | |
| 148 Gaim::Cipher::Context context | |
| 149 | |
| 150 void | |
| 151 gaim_cipher_context_set_data(context, data) | |
| 152 Gaim::Cipher::Context context | |
| 153 gpointer data | |
| 154 | |
| 155 gpointer | |
| 156 gaim_cipher_context_get_data(context) | |
| 157 Gaim::Cipher::Context context |
