Mercurial > pidgin
diff libpurple/certificate.h @ 19077:8275c3cbc9da
- Add purple_certificate_check_signature_chain
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Tue, 07 Aug 2007 04:53:50 +0000 |
parents | daa68185a018 |
children | 3bdede51c007 |
line wrap: on
line diff
--- a/libpurple/certificate.h Tue Aug 07 04:31:01 2007 +0000 +++ b/libpurple/certificate.h Tue Aug 07 04:53:50 2007 +0000 @@ -424,6 +424,20 @@ purple_certificate_signed_by(PurpleCertificate *crt, PurpleCertificate *issuer); /** + * Check that a certificate chain is valid + * + * Uses purple_certificate_signed_by() to verify that each PurpleCertificate + * in the chain carries a valid signature from the next. A single-certificate + * chain is considered to be valid. + * + * @param chain List of PurpleCertificate instances comprising the chain, + * in the order certificate, issuer, issuer's issuer, etc. + * @return TRUE if the chain is valid. See description. + */ +gboolean +purple_certificate_check_signature_chain(GList *chain); + +/** * Imports a PurpleCertificate from a file * * @param scheme Scheme to import under