libpurple/plugins/perl/common/Certificate.xs

Tue, 28 Feb 2012 07:10:15 +0000

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 28 Feb 2012 07:10:15 +0000
changeset 32954
9f8f08dd5b53
parent 32438
dc8991868906
child 33641
a0a7336aa941
permissions
-rw-r--r--

Remove purple_certificate_display_x509 from Perl wrappers.

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 ## 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
72 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
73 purple_certificate_export(crt, filename)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
74 const gchar* filename
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
75 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
76 C_ARGS:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
77 filename, crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
78
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
79 Purple::Certificate::Pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
80 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
81 const gchar* scheme_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
82 const gchar* pool_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
83
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
84 Purple::Certificate::Scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
85 purple_certificate_find_scheme(name)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
86 const gchar* 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::Verifier
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
89 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
90 const gchar* scheme_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
91 const gchar* ver_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
92
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
93 Purple::Handle
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
94 purple_certificate_get_handle()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
95
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
96 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
97 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
98 Purple::Certificate crt
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_subject_name(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_unique_id(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 Purple::Certificate
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
109 purple_certificate_import(scheme, filename)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
110 Purple::Certificate::Scheme scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
111 const gchar* filename
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
112
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
113 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
114 purple_certificate_register_pool(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
115 Purple::Certificate::Pool pool
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_scheme(scheme)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
119 Purple::Certificate::Scheme scheme
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_verifier(vr)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
123 Purple::Certificate::Verifier vr
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_signed_by(crt, issuer)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
127 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
128 Purple::Certificate issuer
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
129
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
130 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
131 purple_certificate_unregister_pool(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
132 Purple::Certificate::Pool pool
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_scheme(scheme)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
136 Purple::Certificate::Scheme scheme
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_verifier(vr)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
140 Purple::Certificate::Verifier vr
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 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
143 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
144 Purple::Certificate::VerificationRequest vrq
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
145 Purple::Certificate::VerificationStatus st
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
146
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
147 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
148 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
149 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
150 PROTOTYPE: $
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
151
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
152 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
153 purple_certificate_destroy_list(...)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
154 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
155 GList* l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
156 int i = 0;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
157 CODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
158 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
159 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
160 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
161 purple_certificate_destroy_list(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
162
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
163 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
164 purple_certificate_get_pools()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
165 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
166 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
167 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
168 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
169 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
170 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
171
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
172 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
173 purple_certificate_get_schemes()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
174 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
175 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
176 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
177 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
178 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
179 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
180
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
181 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
182 purple_certificate_get_verifiers()
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
183 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
184 GList *l;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
185 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
186 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
187 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
188 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
189
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
190 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
191 purple_certificate_check_signature_chain(...)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
192 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
193 GList *l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
194 gboolean ret;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
195 int i;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
196 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
197 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
198 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
199 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
200 l = g_list_reverse(l);
32438
dc8991868906 A boring and large patch so I can merge heads.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 27158
diff changeset
201 ret = purple_certificate_check_signature_chain(l, NULL);
23985
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
202 g_list_free(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
203 if(ret) XSRETURN_YES;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
204 XSRETURN_NO;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
205
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
206 SV*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
207 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
208 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
209 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
210 GByteArray *gba = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
211 CODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
212 gba = purple_certificate_get_fingerprint_sha1(crt);
27158
1d1bd4413f82 Various perl warning fixes as well as real fixes to gconstpointer functions
Paul Aurich <darkrain42@pidgin.im>
parents: 25123
diff changeset
213 RETVAL = newSVpv((gchar *)gba->data, gba->len);
23985
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
214 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
215 OUTPUT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
216 RETVAL
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
217
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
218 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
219 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
220 Purple::Certificate::Verifier verifier
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
221 const gchar* subject_name
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
222 AV* cert_chain
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
223 CV *cb
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
224 SV *cb_data
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
225 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
226 GList *l = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
227 int len = 0, i = 0;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
228 struct cb_data *d = NULL;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
229 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
230 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
231 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
232 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
233 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
234 g_list_free(l);
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
235 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
236 XSRETURN_UNDEF;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
237 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
238 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
239 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
240 l = g_list_reverse(l);
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 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
243 d->cb = newSVsv(ST(3));
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
244 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
245
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
246 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
247
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
248 g_list_free(l);
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 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
251 PROTOTYPES: ENABLE
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
252
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
253 void
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
254 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
255 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
256 PREINIT:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
257 GList *l, *b;
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
258 PPCODE:
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
259 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
260 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
261 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
262 }
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
263 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
264
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
265 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
266 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
267 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
268 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
269
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
270 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
271 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
272 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
273 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
274
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
275 Purple::Certificate::Scheme
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
276 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
277 Purple::Certificate::Pool pool
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 gchar_own*
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
280 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
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 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
283
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
284 Purple::Certificate
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
285 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
286 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
287 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
288
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
289 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
290 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
291 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
292 const gchar* id
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
293 Purple::Certificate crt
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
294
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
295 gboolean
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
296 purple_certificate_pool_usable(pool)
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
297 Purple::Certificate::Pool pool
a8c308734700 Another Perl patch from Zsombor Welker to add more functions.
Daniel Atallah <datallah@pidgin.im>
parents:
diff changeset
298

mercurial