# HG changeset patch # User William Ehlhardt # Date 1182624151 0 # Node ID c519ff185569da8fdd999d8972808c5b7e65ee29 # Parent 02102eccc4be45ff1de265d84cd7d3e030fb9216 - purple_certificate_verify attempts to check that the cert chain is of the correct scheme diff -r 02102eccc4be -r c519ff185569 libpurple/certificate.c --- a/libpurple/certificate.c Sat Jun 23 00:04:49 2007 +0000 +++ b/libpurple/certificate.c Sat Jun 23 18:42:31 2007 +0000 @@ -55,6 +55,11 @@ scheme = purple_certificate_find_scheme(verifier->scheme_name); g_return_if_fail(scheme); + /* Check that at least the first cert in the chain matches the + Verifier scheme */ + g_return_if_fail(scheme != + ((PurpleCertificate *) (cert_chain->data))->scheme); + /* Construct and fill in the request fields */ vrq = g_new(PurpleCertificateVerificationRequest, 1); vrq->verifier = verifier;