Mercurial > pidgin.yaz
comparison libpurple/certificate.c @ 19018:d6f902265076
- Add purple_certificate_copy and associated machinery
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Fri, 13 Jul 2007 08:38:21 +0000 |
parents | bc4d0ebeabd3 |
children | d69355001a6e |
comparison
equal
deleted
inserted
replaced
19017:e6558bae2bc6 | 19018:d6f902265076 |
---|---|
96 purple_certificate_destroy_list(vrq->cert_chain); | 96 purple_certificate_destroy_list(vrq->cert_chain); |
97 | 97 |
98 g_free(vrq); | 98 g_free(vrq); |
99 } | 99 } |
100 | 100 |
101 PurpleCertificate * | |
102 purple_certificate_copy(PurpleCertificate *crt) | |
103 { | |
104 g_return_val_if_fail(crt, NULL); | |
105 g_return_val_if_fail(crt->scheme, NULL); | |
106 g_return_val_if_fail(crt->scheme->copy_certificate, NULL); | |
107 | |
108 return (crt->scheme->copy_certificate)(crt); | |
109 } | |
101 | 110 |
102 void | 111 void |
103 purple_certificate_destroy (PurpleCertificate *crt) | 112 purple_certificate_destroy (PurpleCertificate *crt) |
104 { | 113 { |
105 PurpleCertificateScheme *scheme; | 114 PurpleCertificateScheme *scheme; |