Mercurial > pidgin.yaz
changeset 19095:cd70e75f9a83
- x509_ca_lazy_init is more implemented
- Cosmetics
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sun, 12 Aug 2007 03:44:44 +0000 |
parents | dd9f69ebaae8 |
children | 81163e153778 |
files | libpurple/certificate.c |
diffstat | 1 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/certificate.c Sun Aug 12 03:36:53 2007 +0000 +++ b/libpurple/certificate.c Sun Aug 12 03:44:44 2007 +0000 @@ -612,11 +612,25 @@ static gboolean x509_ca_lazy_init(void) { + PurpleCertificateScheme *x509; + if (x509_ca_initialized) return TRUE; + /* Check that X.509 is registered */ + x509 = purple_certificate_find_scheme(x509_ca.scheme_name); + if ( !x509 ) { + purple_debug_info("certificate/x509/ca", + "Lazy init failed because an X.509 Scheme " + "is not yet registered. Maybe it will be " + "better later.\n"); + return FALSE; + } + /* Populate the certificates pool from the system path */ /* TODO: Writeme! */ - + + purple_debug_info("certificate/x509/ca", + "Lazy init completed.\n"); x509_ca_initialized = TRUE; return TRUE; } @@ -628,7 +642,7 @@ it will get done later */ if ( ! x509_ca_lazy_init()) { purple_debug_info("certificate/x509/ca", - "Lazy init failed, probably because a " + "Init failed, probably because a " "dependency is not yet registered. " "It has been deferred to later.\n"); }