Mon, 18 Jul 2005 13:37:38 +0000
[gaim-migrate @ 13174]
Some new xsubs for the perl interpreter and a work around to get it all working again.
| 11118 | 1 | |
| 2 | #include "module.h" | |
| 3 | ||
| 4 | /* TODO | |
| 5 | ||
| 6 | ||
| 7 | */ | |
| 8 | ||
| 9 | /**********************XS Code for Account.xs*********************************/ | |
| 10 | MODULE = Gaim::Cipher PACKAGE = Gaim::Cipher PREFIX = gaim_cipher_ | |
| 11 | PROTOTYPES: ENABLE | |
| 12 | ||
| 13 | const gchar * | |
| 14 | gaim_cipher_get_name(cipher) | |
| 15 | Gaim::Cipher cipher | |
| 16 | ||
| 17 | guint | |
| 18 | gaim_cipher_get_capabilities(cipher) | |
| 19 | Gaim::Cipher cipher | |
| 20 | ||
| 21 | gboolean | |
| 22 | gaim_cipher_digest_region(name, data, data_len, in_len, digest, out_len) | |
| 23 | const gchar * name | |
| 24 | const guint8 * data | |
| 25 | size_t &data_len | |
| 26 | size_t &in_len | |
| 27 | guint8 &digest | |
| 28 | size_t * out_len | |
| 29 | ||
| 30 | Gaim::Cipher | |
| 31 | gaim_ciphers_find_cipher(name) | |
| 32 | gchar * name | |
| 33 | ||
| 34 | Gaim::Cipher | |
| 35 | gaim_ciphers_register_cipher(name, ops) | |
| 36 | gchar * name | |
| 37 | Gaim::Cipher::Ops ops | |
| 38 | ||
| 39 | gboolean | |
| 40 | gaim_ciphers_unregister_cipher(cipher) | |
| 41 | Gaim::Cipher cipher | |
| 42 | ||
| 43 | void | |
| 44 | gaim_ciphers_get_ciphers() | |
| 45 | PREINIT: | |
| 46 | GList *l; | |
| 47 | PPCODE: | |
| 48 | for (l = gaim_ciphers_get_ciphers(); l != NULL; l = l->next) { | |
| 49 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Cipher"))); | |
| 50 | } | |
| 51 | ||
| 52 | gpointer | |
| 53 | gaim_ciphers_get_handle() | |
| 54 | ||
| 55 | void | |
| 56 | gaim_ciphers_init() | |
| 57 | ||
| 58 | void | |
| 59 | gaim_ciphers_uninit() | |
| 60 | ||
| 61 | void | |
| 62 | gaim_cipher_context_set_option(context, name, value) | |
| 63 | Gaim::Cipher::Context context | |
| 64 | gchar *name | |
| 65 | gpointer value | |
| 66 | ||
| 67 | gpointer | |
| 68 | gaim_cipher_context_get_option(context, name) | |
| 69 | Gaim::Cipher::Context context | |
| 70 | gchar *name | |
| 71 | ||
| 72 | Gaim::Cipher::Context | |
| 73 | gaim_cipher_context_new(cipher, extra) | |
| 74 | Gaim::Cipher cipher | |
| 75 | void *extra | |
| 76 | ||
| 77 | Gaim::Cipher::Context | |
| 78 | gaim_cipher_context_new_by_name(name, extra) | |
| 79 | gchar *name | |
| 80 | void *extra | |
| 81 | ||
| 82 | void | |
| 83 | gaim_cipher_context_reset(context, extra) | |
| 84 | Gaim::Cipher::Context context | |
| 85 | gpointer extra | |
| 86 | ||
| 87 | void | |
| 88 | gaim_cipher_context_destroy(context) | |
| 89 | Gaim::Cipher::Context context | |
| 90 | ||
| 91 | void | |
| 92 | gaim_cipher_context_set_iv(context, iv, len) | |
| 93 | Gaim::Cipher::Context context | |
| 94 | guint8 * iv | |
| 95 | size_t len | |
| 96 | ||
| 97 | void | |
| 98 | gaim_cipher_context_append(context, data, len) | |
| 99 | Gaim::Cipher::Context context | |
| 100 | guint8 * data | |
| 101 | size_t len | |
| 102 | ||
| 103 | gboolean | |
| 104 | gaim_cipher_context_digest(context, in_len, digest, out_len) | |
| 105 | Gaim::Cipher::Context context | |
| 106 | size_t in_len | |
| 107 | guint8 &digest | |
| 108 | size_t &out_len | |
| 109 | ||
| 110 | gboolean | |
| 111 | gaim_cipher_context_digest_to_str(context, in_len, digest_s, out_len) | |
| 112 | Gaim::Cipher::Context context | |
| 113 | size_t in_len | |
| 114 | guint8 &digest_s | |
| 115 | size_t &out_len | |
| 116 | ||
| 117 | gint | |
| 118 | gaim_cipher_context_encrypt(context, data, len, output, outlen) | |
| 119 | Gaim::Cipher::Context context | |
| 120 | guint8 &data | |
| 121 | size_t len | |
| 122 | guint8 &output | |
| 123 | size_t &outlen | |
| 124 | ||
| 125 | gint | |
| 126 | gaim_cipher_context_decrypt(context, data, len, output, outlen) | |
| 127 | Gaim::Cipher::Context context | |
| 128 | guint8 &data | |
| 129 | size_t len | |
| 130 | guint8 &output | |
| 131 | size_t &outlen | |
| 132 | ||
| 133 | void | |
| 134 | gaim_cipher_context_set_salt(context, salt) | |
| 135 | Gaim::Cipher::Context context | |
| 136 | guint8 *salt | |
| 137 | ||
| 138 | size_t | |
| 139 | gaim_cipher_context_get_salt_size(context) | |
| 140 | Gaim::Cipher::Context context | |
| 141 | ||
| 142 | void | |
| 143 | gaim_cipher_context_set_key(context, key) | |
| 144 | Gaim::Cipher::Context context | |
| 145 | guint8 *key | |
| 146 | ||
| 147 | size_t | |
| 148 | gaim_cipher_context_get_key_size(context) | |
| 149 | Gaim::Cipher::Context context | |
| 150 | ||
| 151 | void | |
| 152 | gaim_cipher_context_set_data(context, data) | |
| 153 | Gaim::Cipher::Context context | |
| 154 | gpointer data | |
| 155 | ||
| 156 | gpointer | |
| 157 | gaim_cipher_context_get_data(context) | |
| 158 | Gaim::Cipher::Context context | |
| 159 |