Mercurial > pidgin.yaz
comparison libpurple/certificate.c @ 19088:f5802217844d
- Add verify_complete, which should deprecate verify_destroy
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Fri, 10 Aug 2007 04:59:52 +0000 |
parents | e256e0bf8ae1 |
children | c8962b52579e |
comparison
equal
deleted
inserted
replaced
19087:7fa5d10969f4 | 19088:f5802217844d |
---|---|
97 purple_certificate_destroy_list(vrq->cert_chain); | 97 purple_certificate_destroy_list(vrq->cert_chain); |
98 | 98 |
99 g_free(vrq); | 99 g_free(vrq); |
100 } | 100 } |
101 | 101 |
102 void | |
103 purple_certificate_verify_complete(PurpleCertificateVerificationRequest *vrq, | |
104 PurpleCertificateVerificationStatus st) | |
105 { | |
106 PurpleCertificateVerifier *vr; | |
107 | |
108 g_return_if_fail(vrq); | |
109 | |
110 /* Pass the results on to the request's callback */ | |
111 (vrq->cb)(st, vrq->cb_data); | |
112 | |
113 /* And now to eliminate the request */ | |
114 /* Fetch the Verifier responsible... */ | |
115 vr = vrq->verifier; | |
116 /* ...and order it to KILL */ | |
117 (vr->destroy_request)(vrq); | |
118 | |
119 /* Now the internals have been cleaned up, so clean up the libpurple- | |
120 created elements */ | |
121 g_free(vrq->subject_name); | |
122 purple_certificate_destroy_list(vrq->cert_chain); | |
123 | |
124 /* A structure born | |
125 * to much ado | |
126 * and with so much within. | |
127 * It reaches now | |
128 * its quiet end. */ | |
129 g_free(vrq); | |
130 } | |
131 | |
132 | |
102 PurpleCertificate * | 133 PurpleCertificate * |
103 purple_certificate_copy(PurpleCertificate *crt) | 134 purple_certificate_copy(PurpleCertificate *crt) |
104 { | 135 { |
105 g_return_val_if_fail(crt, NULL); | 136 g_return_val_if_fail(crt, NULL); |
106 g_return_val_if_fail(crt->scheme, NULL); | 137 g_return_val_if_fail(crt->scheme, NULL); |