Mercurial > pidgin
changeset 18943:c519ff185569
- purple_certificate_verify attempts to check that the cert chain is of
the correct scheme
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 23 Jun 2007 18:42:31 +0000 |
parents | 02102eccc4be |
children | 3a71a46d171c |
files | libpurple/certificate.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;