libpurple/plugins/ssl/ssl-nss.c

branch
soc.2007.certmgr
changeset 19010
ad839d846fae
parent 19009
01fe9523e6d6
child 19011
21cdaee203e8
equal deleted inserted replaced
19009:01fe9523e6d6 19010:ad839d846fae
441 * 441 *
442 */ 442 */
443 static void 443 static void
444 x509_destroy_certificate(PurpleCertificate * crt) 444 x509_destroy_certificate(PurpleCertificate * crt)
445 { 445 {
446 /* pass */ 446 CERTCertificate *crt_dat;
447
448 g_return_if_fail(crt);
449 g_return_if_fail(crt->scheme == &x509_nss);
450
451 crt_dat = X509_NSS_DATA(crt);
452 g_return_if_fail(crt_dat);
453
454 /* Finally we have the certificate. So let's kill it */
455 CERT_DestroyCertificate(crt_dat);
447 } 456 }
448 457
449 /** Determines whether one certificate has been issued and signed by another 458 /** Determines whether one certificate has been issued and signed by another
450 * 459 *
451 * @param crt Certificate to check the signature of 460 * @param crt Certificate to check the signature of

mercurial