diff libpurple/certificate.c @ 18947:3c6bf77bf7c4

- Add purple_certificate_verify_destroy and associated machinery
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 23 Jun 2007 20:34:07 +0000
parents 617447a71ab7
children 8902f0d7e40f
line wrap: on
line diff
--- a/libpurple/certificate.c	Sat Jun 23 19:47:58 2007 +0000
+++ b/libpurple/certificate.c	Sat Jun 23 20:34:07 2007 +0000
@@ -74,6 +74,23 @@
 }
 
 void
+purple_certificate_verify_destroy (PurpleCertificateVerificationRequest *vrq)
+{
+	PurpleCertificateVerifier *vr;
+
+	if (NULL == vrq) return;
+
+	/* TODO: Should I make it easier on the Verifier programmer and
+	   clean up some of vrq's internals here? */
+	
+	/* Fetch the Verifier responsible... */
+	vr = vrq->verifier;
+	/* ...and order it to KILL */
+	(vr->destroy_request)(vrq);
+}
+
+
+void
 purple_certificate_destroy (PurpleCertificate *crt)
 {
 	PurpleCertificateScheme *scheme;