Struct openssl::asn1::Asn1Object

source ·
pub struct Asn1Object(_);
Expand description

Object Identifier

Represents an ASN.1 Object. Typically, NIDs, or numeric identifiers are stored as a table within the Nid module. These constants are used to determine attributes of a certificate, such as mapping the attribute “CommonName” to “CN” which is represented as the OID of 13. This attribute is a constant in the nid::COMMONNAME.

OpenSSL documentation at OBJ_nid2obj

Implementations§

Constructs an ASN.1 Object Identifier from a string representation of the OID.

This corresponds to OBJ_txt2obj.

Return the OID as an DER encoded array of bytes. This is the ASN.1 value, not including tag or length.

Requires OpenSSL 1.1.1 or newer.

This corresponds to OBJ_get0_data.

Methods from Deref<Target = Asn1ObjectRef>§

Returns the NID associated with this OID.

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.

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.