changeset 19070:7ccb5ab3e07e

- x509_nss destroy_certificate
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 03 Aug 2007 07:11:06 +0000
parents fcb3e4a2aa9a
children d224a1e4b919
files libpurple/plugins/ssl/ssl-nss.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-nss.c	Fri Aug 03 07:08:42 2007 +0000
+++ b/libpurple/plugins/ssl/ssl-nss.c	Fri Aug 03 07:11:06 2007 +0000
@@ -443,7 +443,16 @@
 static void
 x509_destroy_certificate(PurpleCertificate * crt)
 {
-	/* pass */
+	CERTCertificate *crt_dat;
+
+	g_return_if_fail(crt);
+	g_return_if_fail(crt->scheme == &x509_nss);
+
+	crt_dat = X509_NSS_DATA(crt);
+	g_return_if_fail(crt_dat);
+
+	/* Finally we have the certificate. So let's kill it */
+	CERT_DestroyCertificate(crt_dat);
 }
 
 /** Determines whether one certificate has been issued and signed by another