Struct x509_parser::certification_request::X509CertificationRequestInfo[][src]

pub struct X509CertificationRequestInfo<'a> {
    pub version: X509Version,
    pub subject: X509Name<'a>,
    pub subject_pki: SubjectPublicKeyInfo<'a>,
    pub raw: &'a [u8],
    // some fields omitted
}
Expand description

Certification Request Info structure

Certification request information is defined by the following ASN.1 structure:

CertificationRequestInfo ::= SEQUENCE {
     version       INTEGER { v1(0) } (v1,...),
     subject       Name,
     subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
     attributes    [0] Attributes{{ CRIAttributes }}
}

version is the version number; subject is the distinguished name of the certificate subject; subject_pki contains information about the public key being certified, and attributes is a collection of attributes providing additional information about the subject of the certificate.

Fields

version: X509Versionsubject: X509Name<'a>subject_pki: SubjectPublicKeyInfo<'a>raw: &'a [u8]

Implementations

Get the CRL entry extensions.

Returns an iterator over the CRL entry extensions

Searches for a CRL entry extension with the given Oid.

Note: if there are several extensions with the same Oid, the first one is returned.

Builds and returns a map of CRL entry extensions.

If an extension is present twice, this will fail and return DuplicateExtensions.

Trait Implementations

Formats the value using the given formatter. Read more

CertificationRequestInfo ::= SEQUENCE {
     version       INTEGER { v1(0) } (v1,...),
     subject       Name,
     subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }},
     attributes    [0] Attributes{{ CRIAttributes }}
}

Attempt to parse input bytes into a DER object

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.