Re-add the set_header_alg and set_body_alg functions, but only for the tests

This commit is contained in:
Rodolphe Bréard 2023-04-15 22:07:27 +02:00
parent d78fd34995
commit 9c109ed1f6

View file

@ -47,6 +47,18 @@ impl Canonicalization {
CanonicalizationType::Simple => body_simple(body),
}
}
#[cfg(test)]
pub fn set_header_alg(mut self, alg: CanonicalizationType) -> Self {
self.header_alg = alg;
self
}
#[cfg(test)]
pub fn set_body_alg(mut self, alg: CanonicalizationType) -> Self {
self.body_alg = alg;
self
}
}
impl Default for Canonicalization {