[Pidgin] #3533: Libpurple does not load certificate .pem files
Pidgin
trac at pidgin.im
Thu Aug 21 18:14:13 EDT 2008
#3533: Libpurple does not load certificate .pem files
----------------------------------------------------+-----------------------
Reporter: emilal | Owner:
Type: defect | Status: pending
Milestone: | Component: libpurple
Version: 2.5.0 | Resolution:
Keywords: Certificate files not loaded correctly |
----------------------------------------------------+-----------------------
Changes (by emilal):
* status: pending => new
* version: 2.2.1 => 2.5.0
Comment:
Now x509_ca_lazy_init is working. But this code still reqest GUI
intervation, and can not work in server mode:
{{{
static void
x509_tls_cached_user_auth_cb (x509_tls_cached_ua_ctx *c, gint id)
{
PurpleCertificateVerificationRequest *vrq;
PurpleCertificatePool *tls_peers;
g_return_if_fail(c);
g_return_if_fail(c->vrq);
vrq = c->vrq;
x509_tls_cached_ua_ctx_free(c);
tls_peers = purple_certificate_find_pool("x509","tls_peers");
if (2 == id) {
gchar *cache_id = vrq->subject_name;
purple_debug_info("certificate/x509/tls_cached",
"User ACCEPTED cert\nCaching first in
chain for future use as %s...\n",
cache_id);
purple_certificate_pool_store(tls_peers, cache_id,
vrq->cert_chain->data);
purple_certificate_verify_complete(vrq,
PURPLE_CERTIFICATE_VALID);
} else {
purple_debug_info("certificate/x509/tls_cached",
"User REJECTED cert\n");
purple_certificate_verify_complete(vrq,
PURPLE_CERTIFICATE_INVALID);
}
}
Is there some option to send some API call for confirmation, instead to
ask user with dialog box directly from libpurple core?
}}}
--
Ticket URL: <http://developer.pidgin.im/ticket/3533#comment:2>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list