| 106 g_return_val_if_fail(crt->scheme->copy_certificate, NULL); |
106 g_return_val_if_fail(crt->scheme->copy_certificate, NULL); |
| 107 |
107 |
| 108 return (crt->scheme->copy_certificate)(crt); |
108 return (crt->scheme->copy_certificate)(crt); |
| 109 } |
109 } |
| 110 |
110 |
| |
111 GList * |
| |
112 purple_certificate_copy_list(GList *crt_list) |
| |
113 { |
| |
114 GList *new, *l; |
| |
115 |
| |
116 /* First, make a shallow copy of the list */ |
| |
117 new = g_list_copy(crt_list); |
| |
118 |
| |
119 /* Now go through and actually duplicate each certificate */ |
| |
120 for (l = new; l; l = l->next) { |
| |
121 l->data = purple_certificate_copy(l->data); |
| |
122 } |
| |
123 |
| |
124 return new; |
| |
125 } |
| |
126 |
| 111 void |
127 void |
| 112 purple_certificate_destroy (PurpleCertificate *crt) |
128 purple_certificate_destroy (PurpleCertificate *crt) |
| 113 { |
129 { |
| 114 PurpleCertificateScheme *scheme; |
130 PurpleCertificateScheme *scheme; |
| 115 |
131 |