pub struct ExtendedKeyUsage<'a> { /* private fields */ }Expand description
Further purposes, named by identifier rather than by bit.
Implementations§
Source§impl<'a> ExtendedKeyUsage<'a>
impl<'a> ExtendedKeyUsage<'a>
Sourcepub fn read_value(parent: &Reader<'a>, value: &Element<'a>) -> Result<Self>
pub fn read_value(parent: &Reader<'a>, value: &Element<'a>) -> Result<Self>
Reads an original EKU SEQUENCE using its producing reader and depth. No certificate reconstruction or replacement parser is needed. The returned catalogue retains its allocation charge; temporary lookup storage is released before return. All decoding and storage work uses the producing reader’s local and aggregate execution bounds.
§Errors
Returns malformed or empty EKU syntax, inherited depth refusal, or a located resource error before unfunded catalogue growth or copying.
Sourcepub fn has(&self, purpose: Oid<'_>, execution: &Memory) -> Result<bool>
pub fn has(&self, purpose: Oid<'_>, execution: &Memory) -> Result<bool>
Whether one purpose is among them.
The identifier that stands for any purpose is not treated as matching everything here: whether it does is a policy question, and answering it in the parser would hide the difference between a certificate that names a purpose and one that names none.