comparison libpurple/certificate.c @ 25436:cddd7961901f

propagate from branch 'im.pidgin.pidgin' (head 32e078dbbf6d15a1c0a2916f1d590ea45f3c364d) to branch 'im.pidgin.pidgin.openq' (head 2634a1410370cffba5172a684edbe1009b78107a)
author SHiNE CsyFeK <csyfek@gmail.com>
date Sun, 08 Feb 2009 10:34:31 +0000
parents fc8fd4fef166
children 8c8948b9f602
comparison
equal deleted inserted replaced
25232:effbf24b39b1 25436:cddd7961901f
1544 } 1544 }
1545 1545
1546 void 1546 void
1547 purple_certificate_uninit(void) 1547 purple_certificate_uninit(void)
1548 { 1548 {
1549 GList *full_list, *l;
1550
1551 /* Unregister all Schemes */
1552 full_list = g_list_copy(cert_schemes); /* Make a working copy */
1553 for (l = full_list; l; l = l->next) {
1554 purple_certificate_unregister_scheme(
1555 (PurpleCertificateScheme *) l->data );
1556 }
1557 g_list_free(full_list);
1558
1559 /* Unregister all Verifiers */ 1549 /* Unregister all Verifiers */
1560 full_list = g_list_copy(cert_verifiers); /* Make a working copy */ 1550 g_list_foreach(cert_verifiers, (GFunc)purple_certificate_unregister_verifier, NULL);
1561 for (l = full_list; l; l = l->next) {
1562 purple_certificate_unregister_verifier(
1563 (PurpleCertificateVerifier *) l->data );
1564 }
1565 g_list_free(full_list);
1566 1551
1567 /* Unregister all Pools */ 1552 /* Unregister all Pools */
1568 full_list = g_list_copy(cert_pools); /* Make a working copy */ 1553 g_list_foreach(cert_pools, (GFunc)purple_certificate_unregister_pool, NULL);
1569 for (l = full_list; l; l = l->next) {
1570 purple_certificate_unregister_pool(
1571 (PurpleCertificatePool *) l->data );
1572 }
1573 g_list_free(full_list);
1574 } 1554 }
1575 1555
1576 gpointer 1556 gpointer
1577 purple_certificate_get_handle(void) 1557 purple_certificate_get_handle(void)
1578 { 1558 {