comparison libpurple/certificate.c @ 18952:974d110cf7b1

- libpurple is now responsible for some cleanup and final deletion of a VerificationRequest
author William Ehlhardt <williamehlhardt@gmail.com>
date Tue, 26 Jun 2007 21:59:09 +0000
parents f78a9efa9eaf
children 89b32569890c
comparison
equal deleted inserted replaced
18951:11e88e451bfb 18952:974d110cf7b1
78 { 78 {
79 PurpleCertificateVerifier *vr; 79 PurpleCertificateVerifier *vr;
80 80
81 if (NULL == vrq) return; 81 if (NULL == vrq) return;
82 82
83 /* TODO: Should I make it easier on the Verifier programmer and
84 clean up some of vrq's internals here? */
85
86 /* Fetch the Verifier responsible... */ 83 /* Fetch the Verifier responsible... */
87 vr = vrq->verifier; 84 vr = vrq->verifier;
88 /* ...and order it to KILL */ 85 /* ...and order it to KILL */
89 (vr->destroy_request)(vrq); 86 (vr->destroy_request)(vrq);
87
88 /* Now the internals have been cleaned up, so clean up the libpurple-
89 created elements */
90 g_free(vrq->subject_name);
91 purple_certificate_destroy_list(vrq->cert_chain);
92
93 g_free(vrq);
90 } 94 }
91 95
92 96
93 void 97 void
94 purple_certificate_destroy (PurpleCertificate *crt) 98 purple_certificate_destroy (PurpleCertificate *crt)