Mercurial > pidgin.yaz
comparison libpurple/certificate.c @ 19205:fff2bc09ec1a
Cosmetics
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Mon, 13 Aug 2007 05:42:57 +0000 |
parents | 2847b6c84d6c |
children | 919395a01483 |
comparison
equal
deleted
inserted
replaced
19204:2847b6c84d6c | 19205:fff2bc09ec1a |
---|---|
727 x509_ca_initialized = FALSE; | 727 x509_ca_initialized = FALSE; |
728 } | 728 } |
729 | 729 |
730 /** Look up a ca_element by dn */ | 730 /** Look up a ca_element by dn */ |
731 static x509_ca_element * | 731 static x509_ca_element * |
732 x509_ca_locate_crt(GList *lst, const gchar *dn) | 732 x509_ca_locate_cert(GList *lst, const gchar *dn) |
733 { | 733 { |
734 GList *cur; | 734 GList *cur; |
735 | 735 |
736 for (cur = lst; cur; cur = cur->next) { | 736 for (cur = lst; cur; cur = cur->next) { |
737 x509_ca_element *el = cur->data; | 737 x509_ca_element *el = cur->data; |
747 x509_ca_cert_in_pool(const gchar *id) | 747 x509_ca_cert_in_pool(const gchar *id) |
748 { | 748 { |
749 g_return_val_if_fail(x509_ca_lazy_init(), FALSE); | 749 g_return_val_if_fail(x509_ca_lazy_init(), FALSE); |
750 g_return_val_if_fail(id, FALSE); | 750 g_return_val_if_fail(id, FALSE); |
751 | 751 |
752 if (x509_ca_locate_crt(x509_ca_certs, id) != NULL) { | 752 if (x509_ca_locate_cert(x509_ca_certs, id) != NULL) { |
753 return TRUE; | 753 return TRUE; |
754 } else { | 754 } else { |
755 return FALSE; | 755 return FALSE; |
756 } | 756 } |
757 | 757 |