pub struct X509Extension(_);
Expand description

Permit additional fields to be added to an X509 v3 certificate.

Implementations

👎Deprecated since 0.10.51: Use x509::extension types or new_from_der instead

Constructs an X509 extension value. See man x509v3_config for information on supported names and their value formats.

Some extension types, such as subjectAlternativeName, require an X509v3Context to be provided.

DO NOT CALL THIS WITH UNTRUSTED value: value is an OpenSSL mini-language that can read arbitrary files.

See the extension module for builder types which will construct certain common extensions.

This function is deprecated, X509Extension::new_from_der or the types in x509::extension should be used in its place.

👎Deprecated since 0.10.51: Use x509::extension types or new_from_der instead

Constructs an X509 extension value. See man x509v3_config for information on supported extensions and their value formats.

Some extension types, such as nid::SUBJECT_ALTERNATIVE_NAME, require an X509v3Context to be provided.

DO NOT CALL THIS WITH UNTRUSTED value: value is an OpenSSL mini-language that can read arbitrary files.

See the extension module for builder types which will construct certain common extensions.

This function is deprecated, X509Extension::new_from_der or the types in x509::extension should be used in its place.

Constructs a new X509 extension value from its OID, whether it’s critical, and its DER contents.

The extent structure of the DER value will vary based on the extension type, and can generally be found in the RFC defining the extension.

For common extension types, there are Rust APIs provided in openssl::x509::extensions which are more ergonomic.

👎Deprecated since 0.10.51: Use x509::extension types or new_from_der and then this is not necessary

Adds an alias for an extension

Safety

This method modifies global state without locking and therefore is not thread safe

This corresponds to X509V3_EXT_add_alias.

Methods from Deref<Target = X509ExtensionRef>

Serializes the Extension to its standard DER encoding.

This corresponds to i2d_X509_EXTENSION.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type. Read more
The raw C type.
The type representing a reference to this type.
Constructs an instance of this type from its raw type.
Returns a raw pointer to the wrapped value.
The C stack type for this element. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.