Mercurial > pidgin
diff libpurple/certificate.c @ 27590:a08e84032814
merge of '2348ff22f0ff3453774b8b25b36238465580c609'
and 'e76f11543c2a4aa05bdf584f087cbe3439029661'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 05:43:38 +0000 |
parents | 627d23bfdb05 |
children | 18a96fe78870 |
line wrap: on
line diff
--- a/libpurple/certificate.c Sun Jul 12 05:42:40 2009 +0000 +++ b/libpurple/certificate.c Sun Jul 12 05:43:38 2009 +0000 @@ -93,14 +93,11 @@ "Successfully verified certificate for %s\n", vrq->subject_name); } else { - purple_debug_info("certificate", + purple_debug_error("certificate", "Failed to verify certificate for %s\n", vrq->subject_name); } - - - /* Pass the results on to the request's callback */ (vrq->cb)(st, vrq->cb_data); @@ -224,7 +221,7 @@ /* Check the signature for this link */ if (! purple_certificate_signed_by(crt, issuer) ) { uid = purple_certificate_get_unique_id(issuer); - purple_debug_info("certificate", + purple_debug_error("certificate", "...Bad or missing signature by %s\nChain is INVALID\n", uid); g_free(uid); @@ -681,7 +678,7 @@ /* Check that X.509 is registered */ x509 = purple_certificate_find_scheme(x509_ca.scheme_name); if ( !x509 ) { - purple_debug_info("certificate/x509/ca", + purple_debug_warning("certificate/x509/ca", "Lazy init failed because an X.509 Scheme " "is not yet registered. Maybe it will be " "better later.\n"); @@ -1162,7 +1159,7 @@ purple_certificate_verify_complete(vrq, PURPLE_CERTIFICATE_VALID); } else { - purple_debug_info("certificate/x509/tls_cached", + purple_debug_warning("certificate/x509/tls_cached", "User REJECTED cert\n"); purple_certificate_verify_complete(vrq, PURPLE_CERTIFICATE_INVALID); @@ -1273,7 +1270,7 @@ purple_certificate_verify_complete(vrq, PURPLE_CERTIFICATE_VALID); } else { - purple_debug_info("certificate/x509/tls_cached", + purple_debug_error("certificate/x509/tls_cached", "Peer cert did NOT match cached\n"); /* vrq now becomes the problem of the user */ x509_tls_cached_unknown_peer(vrq); @@ -1377,7 +1374,7 @@ ca_id); ca_crt = purple_certificate_pool_retrieve(ca, ca_id); if ( NULL == ca_crt ) { - purple_debug_info("certificate/x509/tls_cached", + purple_debug_warning("certificate/x509/tls_cached", "Certificate Authority with DN='%s' not " "found. I'll prompt the user, I guess.\n", ca_id); @@ -1426,7 +1423,7 @@ gchar *sn = purple_certificate_get_subject_name(peer_crt); gchar *msg; - purple_debug_info("certificate/x509/tls_cached", + purple_debug_error("certificate/x509/tls_cached", "Name mismatch: Certificate given for %s " "has a name of %s\n", vrq->subject_name, sn); @@ -1504,7 +1501,7 @@ /* vrq is now the responsibility of cert_in_cache */ x509_tls_cached_cert_in_cache(vrq); } else { - purple_debug_info("certificate/x509/tls_cached", + purple_debug_warning("certificate/x509/tls_cached", "...Not in cache\n"); /* vrq now becomes the problem of unknown_peer */ x509_tls_cached_unknown_peer(vrq);