pub trait CertConsumer {
Show 18 methods
// Required methods
fn start_seq(&mut self, tag: &str) -> Result<(), Error>;
fn end_seq(&mut self) -> Result<(), Error>;
fn integer(&mut self, tag: &str, i: &[u8]) -> Result<(), Error>;
fn printstr(&mut self, tag: &str, s: &str) -> Result<(), Error>;
fn utf8str(&mut self, tag: &str, s: &str) -> Result<(), Error>;
fn bitstr(
&mut self,
tag: &str,
truncate: bool,
s: &[u8],
) -> Result<(), Error>;
fn ostr(&mut self, tag: &str, s: &[u8]) -> Result<(), Error>;
fn start_compound_ostr(&mut self, tag: &str) -> Result<(), Error>;
fn end_compound_ostr(&mut self) -> Result<(), Error>;
fn bool(&mut self, tag: &str, b: bool) -> Result<(), Error>;
fn start_set(&mut self, tag: &str) -> Result<(), Error>;
fn end_set(&mut self) -> Result<(), Error>;
fn ctx(&mut self, tag: &str, id: u8, val: &[u8]) -> Result<(), Error>;
fn start_ctx(&mut self, tag: &str, id: u8) -> Result<(), Error>;
fn end_ctx(&mut self) -> Result<(), Error>;
fn oid(&mut self, tag: &str, oid: &[u8]) -> Result<(), Error>;
fn utctime(&mut self, tag: &str, epoch: u64) -> Result<(), Error>;
fn raw(&mut self, tag: &str, data: &[u8]) -> Result<(), Error>;
}Required Methods§
fn start_seq(&mut self, tag: &str) -> Result<(), Error>
fn end_seq(&mut self) -> Result<(), Error>
fn integer(&mut self, tag: &str, i: &[u8]) -> Result<(), Error>
fn printstr(&mut self, tag: &str, s: &str) -> Result<(), Error>
fn utf8str(&mut self, tag: &str, s: &str) -> Result<(), Error>
fn bitstr(&mut self, tag: &str, truncate: bool, s: &[u8]) -> Result<(), Error>
fn ostr(&mut self, tag: &str, s: &[u8]) -> Result<(), Error>
fn start_compound_ostr(&mut self, tag: &str) -> Result<(), Error>
fn end_compound_ostr(&mut self) -> Result<(), Error>
fn bool(&mut self, tag: &str, b: bool) -> Result<(), Error>
fn start_set(&mut self, tag: &str) -> Result<(), Error>
fn end_set(&mut self) -> Result<(), Error>
fn ctx(&mut self, tag: &str, id: u8, val: &[u8]) -> Result<(), Error>
fn start_ctx(&mut self, tag: &str, id: u8) -> Result<(), Error>
fn end_ctx(&mut self) -> Result<(), Error>
fn oid(&mut self, tag: &str, oid: &[u8]) -> Result<(), Error>
fn utctime(&mut self, tag: &str, epoch: u64) -> Result<(), Error>
Sourcefn raw(&mut self, tag: &str, data: &[u8]) -> Result<(), Error>
fn raw(&mut self, tag: &str, data: &[u8]) -> Result<(), Error>
Emit raw, pre-encoded DER bytes into the output stream verbatim.
This is used to carry through TLV future-extensions, whose payload is
already a fully DER-encoded X.509 Extension (or a sequence of them) and
must be reproduced byte-for-byte for the TBS hash to match the signed
data.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".