Mercurial > pidgin
comparison libpurple/certificate.c @ 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 | 617447a71ab7 |
comparison
equal
deleted
inserted
replaced
18942:02102eccc4be | 18943:c519ff185569 |
---|---|
52 g_return_if_fail(cb != NULL); | 52 g_return_if_fail(cb != NULL); |
53 | 53 |
54 /* Look up the CertificateScheme */ | 54 /* Look up the CertificateScheme */ |
55 scheme = purple_certificate_find_scheme(verifier->scheme_name); | 55 scheme = purple_certificate_find_scheme(verifier->scheme_name); |
56 g_return_if_fail(scheme); | 56 g_return_if_fail(scheme); |
57 | |
58 /* Check that at least the first cert in the chain matches the | |
59 Verifier scheme */ | |
60 g_return_if_fail(scheme != | |
61 ((PurpleCertificate *) (cert_chain->data))->scheme); | |
57 | 62 |
58 /* Construct and fill in the request fields */ | 63 /* Construct and fill in the request fields */ |
59 vrq = g_new(PurpleCertificateVerificationRequest, 1); | 64 vrq = g_new(PurpleCertificateVerificationRequest, 1); |
60 vrq->verifier = verifier; | 65 vrq->verifier = verifier; |
61 vrq->scheme = scheme; | 66 vrq->scheme = scheme; |