Struct openssl::x509::extension::SubjectKeyIdentifier
source · pub struct SubjectKeyIdentifier { /* private fields */ }
Expand description
An extension that provides a means of identifying certificates that contain a particular public key.
Implementations§
source§impl SubjectKeyIdentifier
impl SubjectKeyIdentifier
sourcepub fn new() -> SubjectKeyIdentifier
pub fn new() -> SubjectKeyIdentifier
Construct a new SubjectKeyIdentifier
extension.
sourcepub fn critical(&mut self) -> &mut SubjectKeyIdentifier
pub fn critical(&mut self) -> &mut SubjectKeyIdentifier
Sets the critical
flag to true
. The extension will be critical.
sourcepub fn build(
&self,
ctx: &X509v3Context<'_>
) -> Result<X509Extension, ErrorStack>
pub fn build( &self, ctx: &X509v3Context<'_> ) -> Result<X509Extension, ErrorStack>
Return a SubjectKeyIdentifier
extension as an X509Extension
.
Trait Implementations§
source§impl Default for SubjectKeyIdentifier
impl Default for SubjectKeyIdentifier
source§fn default() -> SubjectKeyIdentifier
fn default() -> SubjectKeyIdentifier
Returns the “default value” for a type. Read more