Struct openssl::asn1::Asn1Object[][src]

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.

This corresponds to OBJ_get0_data.

Requires OpenSSL 1.1.1 or newer.

Methods from Deref<Target = Asn1ObjectRef>

Returns the NID associated with this OID.

Trait Implementations

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.