//! Compatibility shim for the old signature validator.
//!
//! The canonicalizer and validator that lived here rebuilt `SignedInfo` by hand (the text it
//! signed was not well-formed XML), never checked a `Reference` digest, and the token-exchange
//! caller took the verification certificate from the document under test. They are replaced by
//! [`super::dsig`], which verifies with `bergshamra` under certificates the caller configured.
use crateResult;
/// Verifies an XML signature under one given certificate.
///
/// This answers only "is there a signature under this certificate whose references all check
/// out". It does not say which element is signed, so it is not enough to decide what to trust in
/// a document: use [`verify_signed_assertion`](super::dsig::verify_signed_assertion), which
/// returns the signed assertion and nothing else.
;