libpurple/plugins/perl/common/Certificate.xs

Wed, 13 May 2009 20:29:03 +0000

author
Marcus Lundblad <malu@pidgin.im>
date
Wed, 13 May 2009 20:29:03 +0000
changeset 27110
05ca719b901b
parent 25123
730d9e5ae4d0
child 27158
1d1bd4413f82
permissions
-rw-r--r--

Support custom smileys in MUCs (when all participants support BoB and a maximum
of 10 participants are in the chat).
Always announce support for BoB, since disable custom smileys will still turn
off fetching them, and BoB can be used for other purposes further on.

23985
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
1 #include "module.h"
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
2
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
3 struct cb_data {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
4 SV *cb;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
5 SV *user_data;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
6 };
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
7
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
8 static void cb_cert_verify(PurpleCertificateVerificationStatus st, struct cb_data *d) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
9 dSP;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
10
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
11 ENTER;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
12 SAVETMPS;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
13
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
14 PUSHMARK(SP);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
15
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
16 XPUSHs(sv_2mortal(newSViv(st)));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
17 XPUSHs(d->user_data);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
18
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
19 PUTBACK;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
20
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
21 call_sv(d->cb, G_VOID | G_EVAL);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
22
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
23 if(SvTRUE(ERRSV)) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
24 STRLEN l_a;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
25 purple_debug_warning("perl", "Failed to run 'certificate verify' callback: %s\n", SvPV(ERRSV, l_a));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
26 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
27
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
28 FREETMPS;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
29 LEAVE;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
30
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
31 SvREFCNT_dec(d->cb);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
32 SvREFCNT_dec(d->user_data);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
33
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
34 g_free(d);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
35 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
36
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
37 MODULE = Purple::Certificate PACKAGE = Purple::Certificate PREFIX = purple_certificate_
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
38 PROTOTYPES: ENABLE
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
39
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
40 BOOT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
41 {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
42 HV *stash = gv_stashpv("Purple::Certificate", 1);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
43
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
44 static const constiv *civ, const_iv[] = {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
45 #define const_iv(name) {#name, (IV)PURPLE_CERTIFICATE_##name}
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
46 const_iv(INVALID),
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
47 const_iv(VALID),
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
48 };
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
49
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
50 for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; )
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
51 newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
52 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
53
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
54 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
55 purple_certificate_add_ca_search_path(path)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
56 const char* path
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
57
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
58 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
59 purple_certificate_check_subject_name(crt, name)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
60 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
61 const gchar* name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
62
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
63 Purple::Certificate
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
64 purple_certificate_copy(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
65 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
66
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
67 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
68 purple_certificate_destroy(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
69 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
70
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
71 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
72 purple_certificate_display_x509(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
73 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
74
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
75 ## changed order of arguments, so that $cert->export($file) could be used
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
76 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
77 purple_certificate_export(crt, filename)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
78 const gchar* filename
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
79 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
80 C_ARGS:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
81 filename, crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
82
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
83 Purple::Certificate::Pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
84 purple_certificate_find_pool(scheme_name, pool_name)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
85 const gchar* scheme_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
86 const gchar* pool_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
87
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
88 Purple::Certificate::Scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
89 purple_certificate_find_scheme(name)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
90 const gchar* name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
91
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
92 Purple::Certificate::Verifier
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
93 purple_certificate_find_verifier(scheme_name, ver_name)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
94 const gchar* scheme_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
95 const gchar* ver_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
96
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
97 Purple::Handle
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
98 purple_certificate_get_handle()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
99
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
100 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
101 purple_certificate_get_issuer_unique_id(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
102 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
103
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
104 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
105 purple_certificate_get_subject_name(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
106 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
107
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
108 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
109 purple_certificate_get_unique_id(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
110 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
111
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
112 Purple::Certificate
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
113 purple_certificate_import(scheme, filename)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
114 Purple::Certificate::Scheme scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
115 const gchar* filename
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
116
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
117 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
118 purple_certificate_register_pool(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
119 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
120
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
121 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
122 purple_certificate_register_scheme(scheme)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
123 Purple::Certificate::Scheme scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
124
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
125 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
126 purple_certificate_register_verifier(vr)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
127 Purple::Certificate::Verifier vr
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
128
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
129 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
130 purple_certificate_signed_by(crt, issuer)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
131 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
132 Purple::Certificate issuer
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
133
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
134 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
135 purple_certificate_unregister_pool(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
136 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
137
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
138 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
139 purple_certificate_unregister_scheme(scheme)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
140 Purple::Certificate::Scheme scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
141
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
142 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
143 purple_certificate_unregister_verifier(vr)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
144 Purple::Certificate::Verifier vr
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
145
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
146 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
147 purple_certificate_verify_complete(vrq, st)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
148 Purple::Certificate::VerificationRequest vrq
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
149 Purple::Certificate::VerificationStatus st
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
150
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
151 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
152 purple_certificate_get_times(crt, OUTLIST time_t activation, OUTLIST time_t expiration)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
153 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
154 PROTOTYPE: $
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
155
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
156 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
157 purple_certificate_destroy_list(...)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
158 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
159 GList* l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
160 int i = 0;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
161 CODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
162 for(i = 0; i < items; i++) { /* PurpleCertificate */
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
163 l = g_list_prepend(l, purple_perl_ref_object(ST(i)));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
164 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
165 purple_certificate_destroy_list(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
166
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
167 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
168 purple_certificate_get_pools()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
169 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
170 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
171 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
172 for(l = purple_certificate_get_pools(); l; l = l->next) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
173 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Certificate::Pool")));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
174 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
175
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
176 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
177 purple_certificate_get_schemes()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
178 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
179 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
180 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
181 for(l = purple_certificate_get_schemes(); l; l = l->next) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
182 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Certificate::Scheme")));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
183 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
184
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
185 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
186 purple_certificate_get_verifiers()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
187 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
188 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
189 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
190 for(l = purple_certificate_get_verifiers(); l; l = l->next) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
191 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Certificate::Verifier")));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
192 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
193
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
194 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
195 purple_certificate_check_signature_chain(...)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
196 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
197 GList *l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
198 gboolean ret;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
199 int i;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
200 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
201 for(i = 0; i < items; i++) { /* PurpleCertificate */
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
202 l = g_list_prepend(l, purple_perl_ref_object(ST(i)));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
203 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
204 l = g_list_reverse(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
205 ret = purple_certificate_check_signature_chain(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
206 g_list_free(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
207 if(ret) XSRETURN_YES;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
208 XSRETURN_NO;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
209
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
210 SV*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
211 purple_certificate_get_fingerprint_sha1(crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
212 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
213 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
214 GByteArray *gba = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
215 CODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
216 gba = purple_certificate_get_fingerprint_sha1(crt);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
217 RETVAL = newSVpv(gba->data, gba->len);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
218 g_byte_array_free(gba, TRUE);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
219 OUTPUT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
220 RETVAL
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
221
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
222 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
223 purple_certificate_verify(verifier, subject_name, cert_chain, cb, cb_data)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
224 Purple::Certificate::Verifier verifier
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
225 const gchar* subject_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
226 AV* cert_chain
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
227 CV *cb
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
228 SV *cb_data
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
229 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
230 GList *l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
231 int len = 0, i = 0;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
232 struct cb_data *d = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
233 PPCODE:
25123
730d9e5ae4d0 Use av_len in the same manner as everywhere else, for consistency.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 23985
diff changeset
234 len = av_len(cert_chain);
730d9e5ae4d0 Use av_len in the same manner as everywhere else, for consistency.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 23985
diff changeset
235 for(i = 0; i <= len; i++) {
23985
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
236 SV **sv = av_fetch(cert_chain, i, 0);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
237 if(!sv || !purple_perl_is_ref_object(*sv)) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
238 g_list_free(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
239 warn("Purple::Certificate::verify: cert_chain: non-purple object in array...");
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
240 XSRETURN_UNDEF;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
241 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
242 l = g_list_prepend(l, purple_perl_ref_object(*sv));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
243 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
244 l = g_list_reverse(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
245
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
246 d = g_new0(struct cb_data, 1);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
247 d->cb = newSVsv(ST(3));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
248 d->user_data = newSVsv(cb_data);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
249
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
250 purple_certificate_verify(verifier, subject_name, l, (PurpleCertificateVerifiedCallback) cb_cert_verify, d);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
251
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
252 g_list_free(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
253
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
254 MODULE = Purple::Certificate PACKAGE = Purple::Certificate::Pool PREFIX = purple_certificate_pool_
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
255 PROTOTYPES: ENABLE
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
256
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
257 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
258 purple_certificate_pool_get_idlist(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
259 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
260 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
261 GList *l, *b;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
262 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
263 b = purple_certificate_pool_get_idlist(pool);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
264 for(l = b; l; l = l->next) {
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
265 XPUSHs(sv_2mortal(newSVpv(l->data, 0)));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
266 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
267 purple_certificate_pool_destroy_idlist(b);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
268
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
269 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
270 purple_certificate_pool_contains(pool, id)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
271 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
272 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
273
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
274 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
275 purple_certificate_pool_delete(pool, id)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
276 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
277 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
278
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
279 Purple::Certificate::Scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
280 purple_certificate_pool_get_scheme(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
281 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
282
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
283 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
284 purple_certificate_pool_mkpath(pool, id)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
285 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
286 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
287
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
288 Purple::Certificate
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
289 purple_certificate_pool_retrieve(pool, id)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
290 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
291 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
292
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
293 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
294 purple_certificate_pool_store(pool, id, crt)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
295 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
296 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
297 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
298
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
299 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
300 purple_certificate_pool_usable(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
301 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
302

mercurial