pub struct OtherRevocationInfo<'a> { /* private fields */ }Expand description
Original CMS other-revocation format and its untouched ANY value. Decoding a recognized format establishes no signature, authorization or freshness.
Implementations§
Source§impl<'a> OtherRevocationInfo<'a>
impl<'a> OtherRevocationInfo<'a>
Sourcepub fn read(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
pub fn read(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
Reads an original context [1] IMPLICIT OtherRevocationInfoFormat using
the same field kernel as SignedData’s structural catalogue validation.
Sourcepub fn kind(&self) -> Oid<'a>
pub fn kind(&self) -> Oid<'a>
Original open-format identifier, without provider/default normalization.
Sourcepub fn value(&self) -> Element<'a>
pub fn value(&self) -> Element<'a>
Whole original ANY element, not its contents or a re-encoded value.
Sourcepub fn ocsp(self) -> Result<Option<ResponseBytes<'a>>>
pub fn ocsp(self) -> Result<Option<ResponseBytes<'a>>>
Decodes the successful whole OCSPResponse required by RFC5940 §3.
An unknown format returns None; a known malformed response or unsigned
protocol failure returns an error. Unsupported inner response syntax is
preserved by the shared envelope, rather than promoted to a basic body.
https://www.rfc-editor.org/rfc/rfc5940#section-3