Mercurial > pidgin
comparison libpurple/certificate.c @ 18946:617447a71ab7
- Add certificate_destroy and certificate_destroy_list
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 23 Jun 2007 19:47:58 +0000 |
parents | c519ff185569 |
children | 3c6bf77bf7c4 |
comparison
equal
deleted
inserted
replaced
18945:fa42d8fa7873 | 18946:617447a71ab7 |
---|---|
71 | 71 |
72 /* Initiate verification */ | 72 /* Initiate verification */ |
73 (verifier->start_verification)(vrq); | 73 (verifier->start_verification)(vrq); |
74 } | 74 } |
75 | 75 |
76 void | |
77 purple_certificate_destroy (PurpleCertificate *crt) | |
78 { | |
79 PurpleCertificateScheme *scheme; | |
80 | |
81 if (NULL == crt) return; | |
82 | |
83 scheme = crt->scheme; | |
84 | |
85 (scheme->destroy_certificate)(crt); | |
86 } | |
87 | |
88 void | |
89 purple_certificate_destroy_list (GList * crt_list) | |
90 { | |
91 PurpleCertificate *crt; | |
92 GList *l; | |
93 | |
94 for (l=crt_list; l; l = l->next) { | |
95 crt = (PurpleCertificate *) l->data; | |
96 purple_certificate_destroy(crt); | |
97 } | |
98 | |
99 g_list_free(crt_list); | |
100 } | |
101 | |
102 | |
76 PurpleCertificateScheme * | 103 PurpleCertificateScheme * |
77 purple_certificate_find_scheme(const gchar *name) | 104 purple_certificate_find_scheme(const gchar *name) |
78 { | 105 { |
79 PurpleCertificateScheme *scheme = NULL; | 106 PurpleCertificateScheme *scheme = NULL; |
80 GList *l; | 107 GList *l; |