Wed, 07 May 2014 01:28:19 +0200
Silence perl coverity warnings
| 11118 | 1 | #include "module.h" |
| 2 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
3 | MODULE = Purple::Cipher PACKAGE = Purple::Cipher PREFIX = purple_cipher_ |
| 11118 | 4 | PROTOTYPES: ENABLE |
| 5 | ||
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
6 | BOOT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
7 | { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
8 | HV *stash = gv_stashpv("Purple::Cipher::BatchMode", 1); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
9 | HV *cipher_caps = gv_stashpv("Purple::Cipher::Caps", 1); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
10 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
11 | static const constiv *civ, const_iv[] = { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
12 | #define const_iv(name) {#name, (IV)PURPLE_CIPHER_BATCH_MODE_##name} |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
13 | const_iv(ECB), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
14 | const_iv(CBC), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
15 | #undef const_iv |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
16 | }; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
17 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
18 | static const constiv bm_const_iv[] = { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
19 | #define const_iv(name) {#name, (IV)PURPLE_CIPHER_CAPS_##name} |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
20 | const_iv(SET_OPT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
21 | const_iv(GET_OPT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
22 | const_iv(INIT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
23 | const_iv(RESET), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
24 | const_iv(UNINIT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
25 | const_iv(SET_IV), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
26 | const_iv(APPEND), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
27 | const_iv(DIGEST), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
28 | const_iv(ENCRYPT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
29 | const_iv(DECRYPT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
30 | const_iv(SET_SALT), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
31 | const_iv(GET_SALT_SIZE), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
32 | const_iv(SET_KEY), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
33 | const_iv(GET_KEY_SIZE), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
34 | const_iv(SET_BATCH_MODE), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
35 | const_iv(GET_BATCH_MODE), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
36 | const_iv(GET_BLOCK_SIZE), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
37 | const_iv(SET_KEY_WITH_LEN), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
38 | const_iv(UNKNOWN), |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
39 | #undef const_iv |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
40 | }; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
41 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
42 | for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; ) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
43 | newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv)); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
44 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
45 | for (civ = bm_const_iv + sizeof(bm_const_iv) / sizeof(bm_const_iv[0]); civ-- > bm_const_iv; ) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
46 | newCONSTSUB(cipher_caps, (char *)civ->name, newSViv(civ->iv)); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
47 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
48 | |
| 11118 | 49 | const gchar * |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
50 | purple_cipher_get_name(cipher) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
51 | Purple::Cipher cipher |
| 11118 | 52 | |
| 12777 | 53 | guint |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
54 | purple_cipher_get_capabilities(cipher) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
55 | Purple::Cipher cipher |
| 11118 | 56 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
57 | size_t |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
58 | purple_cipher_digest_region(name, data_sv, in_len, digest) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
59 | const gchar *name |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
60 | SV *data_sv |
| 11130 | 61 | size_t in_len |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
62 | SV *digest |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
63 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
64 | gboolean ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
65 | guchar *buff = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
66 | guchar *data = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
67 | size_t data_len; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
68 | CODE: |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
69 | data = (guchar *)SvPV(data_sv, data_len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
70 | SvUPGRADE(digest, SVt_PV); |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
71 | buff = (guchar *)SvGROW(digest, in_len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
72 | ret = purple_cipher_digest_region(name, data, data_len, in_len, buff, &RETVAL); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
73 | if(!ret) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
74 | SvSetSV_nosteal(digest, &PL_sv_undef); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
75 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
76 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
77 | SvCUR_set(digest, RETVAL); |
|
36001
10ae4e6808e5
Silence perl coverity warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
27158
diff
changeset
|
78 | /* coverity[extra_comma] */ |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
79 | SvPOK_only(digest); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
80 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
81 | RETVAL |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
82 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
83 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
84 | purple_cipher_http_digest_calculate_response(algorithm, method, digest_uri, qop, entity, nonce, nonce_count, client_nonce, session_key) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
85 | const gchar* algorithm |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
86 | const gchar* method |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
87 | const gchar* digest_uri |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
88 | const gchar* qop |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
89 | const gchar* entity |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
90 | const gchar* nonce |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
91 | const gchar* nonce_count |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
92 | const gchar* client_nonce |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
93 | const gchar* session_key |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
94 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
95 | gchar_own* |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
96 | purple_cipher_http_digest_calculate_session_key(algorithm, username, realm, password, nonce, client_nonce) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
97 | const gchar* algorithm |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
98 | const gchar* username |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
99 | const gchar* realm |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
100 | const gchar* password |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
101 | const gchar* nonce |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
102 | const gchar* client_nonce |
| 11118 | 103 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
104 | MODULE = Purple::Cipher PACKAGE = Purple::Ciphers PREFIX = purple_ciphers_ |
| 12777 | 105 | PROTOTYPES: ENABLE |
| 106 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
107 | Purple::Cipher |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
108 | purple_ciphers_find_cipher(name) |
| 11118 | 109 | gchar * name |
| 110 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
111 | Purple::Cipher |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
112 | purple_ciphers_register_cipher(name, ops) |
| 11118 | 113 | gchar * name |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
114 | Purple::Cipher::Ops ops |
| 11118 | 115 | |
| 12777 | 116 | gboolean |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
117 | purple_ciphers_unregister_cipher(cipher) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
118 | Purple::Cipher cipher |
| 11118 | 119 | |
| 120 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
121 | purple_ciphers_get_ciphers() |
| 11118 | 122 | PREINIT: |
| 123 | GList *l; | |
| 124 | PPCODE: | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
125 | for (l = purple_ciphers_get_ciphers(); l != NULL; l = l->next) { |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
126 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Cipher"))); |
| 11118 | 127 | } |
| 128 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
129 | Purple::Handle |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
130 | purple_ciphers_get_handle() |
| 11118 | 131 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
132 | MODULE = Purple::Cipher PACKAGE = Purple::Cipher::Context PREFIX = purple_cipher_context_ |
| 12777 | 133 | PROTOTYPES: ENABLE |
| 134 | ||
| 135 | void | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
136 | purple_cipher_context_set_option(context, name, value) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
137 | Purple::Cipher::Context context |
| 12777 | 138 | gchar *name |
| 11118 | 139 | gpointer value |
| 140 | ||
| 12777 | 141 | gpointer |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
142 | purple_cipher_context_get_option(context, name) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
143 | Purple::Cipher::Context context |
| 11118 | 144 | gchar *name |
| 145 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
146 | Purple::Cipher::Context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
147 | purple_cipher_context_new(klass, cipher, extra = NULL) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
148 | Purple::Cipher cipher |
| 11118 | 149 | void *extra |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
150 | C_ARGS: cipher, extra |
| 11118 | 151 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
152 | Purple::Cipher::Context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
153 | purple_cipher_context_new_by_name(klass, name, extra = NULL) |
| 11118 | 154 | gchar *name |
| 155 | void *extra | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
156 | C_ARGS: name, extra |
| 11118 | 157 | |
| 12777 | 158 | void |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
159 | purple_cipher_context_reset(context, extra = NULL) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
160 | Purple::Cipher::Context context |
| 11118 | 161 | gpointer extra |
| 162 | ||
| 12777 | 163 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
164 | purple_cipher_context_destroy(context) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
165 | Purple::Cipher::Context context |
| 11118 | 166 | |
| 12777 | 167 | void |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
168 | purple_cipher_context_set_iv(Purple::Cipher::Context context, guchar *iv, size_t length(iv)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
169 | PROTOTYPE: $$ |
| 11118 | 170 | |
| 12777 | 171 | void |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
172 | purple_cipher_context_append(Purple::Cipher::Context context, guchar *data, size_t length(data)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
173 | PROTOTYPE: $$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
174 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
175 | size_t |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
176 | purple_cipher_context_digest(context, in_len, digest) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
177 | Purple::Cipher::Context context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
178 | size_t in_len |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
179 | SV *digest |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
180 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
181 | gboolean ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
182 | guchar *buff = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
183 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
184 | SvUPGRADE(digest, SVt_PV); |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
185 | buff = (guchar *)SvGROW(digest, in_len); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
186 | ret = purple_cipher_context_digest(context, in_len, buff, &RETVAL); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
187 | if(!ret) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
188 | SvSetSV_nosteal(digest, &PL_sv_undef); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
189 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
190 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
191 | SvCUR_set(digest, RETVAL); |
|
36001
10ae4e6808e5
Silence perl coverity warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
27158
diff
changeset
|
192 | /* coverity[extra_comma] */ |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
193 | SvPOK_only(digest); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
194 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
195 | RETVAL |
| 11118 | 196 | |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
197 | size_t |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
198 | purple_cipher_context_digest_to_str(context, in_len, digest_s) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
199 | Purple::Cipher::Context context |
| 11118 | 200 | size_t in_len |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
201 | SV *digest_s |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
202 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
203 | gboolean ret; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
204 | gchar *buff = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
205 | CODE: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
206 | in_len += 1; /* perl shouldn't need to care about '\0' at the end */ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
207 | SvUPGRADE(digest_s, SVt_PV); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
208 | buff = SvGROW(digest_s, in_len); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
209 | ret = purple_cipher_context_digest_to_str(context, in_len, buff, &RETVAL); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
210 | if(!ret) { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
211 | SvSetSV_nosteal(digest_s, &PL_sv_undef); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
212 | XSRETURN_UNDEF; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
213 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
214 | SvCUR_set(digest_s, RETVAL); |
|
36001
10ae4e6808e5
Silence perl coverity warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
27158
diff
changeset
|
215 | /* coverity[extra_comma] */ |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
216 | SvPOK_only(digest_s); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
217 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
218 | RETVAL |
| 11118 | 219 | |
| 12777 | 220 | gint |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
221 | purple_cipher_context_encrypt(context, data_sv, output, OUTLIST size_t outlen) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
222 | Purple::Cipher::Context context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
223 | SV *data_sv |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
224 | SV *output |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
225 | PROTOTYPE: $$$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
226 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
227 | size_t datalen; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
228 | guchar *buff = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
229 | guchar *data = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
230 | CODE: |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
231 | data = (guchar *)SvPV(data_sv, datalen); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
232 | SvUPGRADE(output, SVt_PV); |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
233 | buff = (guchar *)SvGROW(output, datalen); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
234 | RETVAL = purple_cipher_context_encrypt(context, data, datalen, buff, &outlen); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
235 | if(outlen != 0) { |
|
36001
10ae4e6808e5
Silence perl coverity warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
27158
diff
changeset
|
236 | /* coverity[extra_comma] */ |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
237 | SvPOK_only(output); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
238 | SvCUR_set(output, outlen); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
239 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
240 | SvSetSV_nosteal(output, &PL_sv_undef); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
241 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
242 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
243 | RETVAL |
| 11118 | 244 | |
| 12777 | 245 | gint |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
246 | purple_cipher_context_decrypt(context, data_sv, output, OUTLIST size_t outlen) |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
247 | Purple::Cipher::Context context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
248 | SV *data_sv |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
249 | SV *output |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
250 | PROTOTYPE: $$$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
251 | PREINIT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
252 | size_t datalen; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
253 | guchar *buff = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
254 | guchar *data = NULL; |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
255 | CODE: |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
256 | data = (guchar *)SvPV(data_sv, datalen); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
257 | SvUPGRADE(output, SVt_PV); |
|
27158
1d1bd4413f82
Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents:
23983
diff
changeset
|
258 | buff = (guchar *)SvGROW(output, datalen); |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
259 | RETVAL = purple_cipher_context_decrypt(context, data, datalen, buff, &outlen); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
260 | if(outlen != 0) { |
|
36001
10ae4e6808e5
Silence perl coverity warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
27158
diff
changeset
|
261 | /* coverity[extra_comma] */ |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
262 | SvPOK_only(output); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
263 | SvCUR_set(output, outlen); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
264 | } else { |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
265 | SvSetSV_nosteal(output, &PL_sv_undef); |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
266 | } |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
267 | OUTPUT: |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
268 | RETVAL |
| 11118 | 269 | |
| 12777 | 270 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
271 | purple_cipher_context_set_salt(context, salt) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
272 | Purple::Cipher::Context context |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
273 | guchar *salt |
| 11118 | 274 | |
| 12777 | 275 | size_t |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
276 | purple_cipher_context_get_salt_size(context) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
277 | Purple::Cipher::Context context |
| 11118 | 278 | |
| 12777 | 279 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
280 | purple_cipher_context_set_key(context, key) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
281 | Purple::Cipher::Context context |
|
11183
be87fe695c93
[gaim-migrate @ 13295]
Mark Doliner <markdoliner@pidgin.im>
parents:
11130
diff
changeset
|
282 | guchar *key |
| 11118 | 283 | |
| 12777 | 284 | size_t |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
285 | purple_cipher_context_get_key_size(context) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
286 | Purple::Cipher::Context context |
| 11118 | 287 | |
| 12777 | 288 | void |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
289 | purple_cipher_context_set_data(context, data) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
290 | Purple::Cipher::Context context |
| 11118 | 291 | gpointer data |
| 292 | ||
| 12777 | 293 | gpointer |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
294 | purple_cipher_context_get_data(context) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
295 | Purple::Cipher::Context context |
|
23982
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
296 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
297 | Purple::Cipher::BatchMode |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
298 | purple_cipher_context_get_batch_mode(context) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
299 | Purple::Cipher::Context context |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
300 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
301 | size_t |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
302 | purple_cipher_context_get_block_size(context) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
303 | Purple::Cipher::Context context |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
304 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
305 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
306 | purple_cipher_context_set_batch_mode(context, mode) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
307 | Purple::Cipher::Context context |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
308 | Purple::Cipher::BatchMode mode |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
309 | |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
310 | void |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
311 | purple_cipher_context_set_key_with_len(Purple::Cipher::Context context, guchar *key, size_t length(key)) |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
312 | PROTOTYPE: $$ |
|
204b6e71f403
Some Perl bindings fixes and additions from Zsombor Welker.
Daniel Atallah <datallah@pidgin.im>
parents:
15894
diff
changeset
|
313 |