Skip to main content

mbedtls_x509_csr

Struct mbedtls_x509_csr 

Source
#[repr(C)]
pub struct mbedtls_x509_csr {
Show 15 fields pub raw: mbedtls_x509_buf, pub cri: mbedtls_x509_buf, pub version: c_int, pub subject_raw: mbedtls_x509_buf, pub subject: mbedtls_x509_name, pub pk: mbedtls_pk_context, pub key_usage: c_uint, pub ns_cert_type: c_uchar, pub subject_alt_names: mbedtls_x509_sequence, pub private_ext_types: c_int, pub sig_oid: mbedtls_x509_buf, pub private_sig: mbedtls_x509_buf, pub private_sig_md: mbedtls_md_type_t, pub private_sig_pk: mbedtls_pk_type_t, pub private_sig_opts: *mut c_void,
}
Expand description

Certificate Signing Request (CSR) structure.

Some fields of this structure are publicly readable. Do not modify them except via Mbed TLS library functions: the effect of modifying those fields or the data that those fields point to is unspecified.

Fields§

§raw: mbedtls_x509_buf

< The raw CSR data (DER).

§cri: mbedtls_x509_buf

< The raw CertificateRequestInfo body (DER).

§version: c_int

< CSR version (1=v1).

§subject_raw: mbedtls_x509_buf

< The raw subject data (DER).

§subject: mbedtls_x509_name

< The parsed subject data (named information object).

§pk: mbedtls_pk_context

< Container for the public key context.

§key_usage: c_uint

< Optional key usage extension value: See the values in x509.h

§ns_cert_type: c_uchar

< Optional Netscape certificate type extension value: See the values in x509.h

§subject_alt_names: mbedtls_x509_sequence

< Optional list of raw entries of Subject Alternative Names extension. These can be later parsed by mbedtls_x509_parse_subject_alt_name.

§private_ext_types: c_int

< Bit string containing detected and parsed extensions

§sig_oid: mbedtls_x509_buf§private_sig: mbedtls_x509_buf§private_sig_md: mbedtls_md_type_t

< Internal representation of the MD algorithm of the signature algorithm, e.g. MBEDTLS_MD_SHA256

§private_sig_pk: mbedtls_pk_type_t

< Internal representation of the Public Key algorithm of the signature algorithm, e.g. MBEDTLS_PK_RSA

§private_sig_opts: *mut c_void

< Signature options to be passed to mbedtls_pk_verify_ext(), e.g. for RSASSA-PSS

Trait Implementations§

Source§

impl Clone for mbedtls_x509_csr

Source§

fn clone(&self) -> mbedtls_x509_csr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for mbedtls_x509_csr

Source§

impl Debug for mbedtls_x509_csr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for mbedtls_x509_csr

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Send for mbedtls_x509_csr

§

impl !Sync for mbedtls_x509_csr

§

impl Freeze for mbedtls_x509_csr

§

impl RefUnwindSafe for mbedtls_x509_csr

§

impl Unpin for mbedtls_x509_csr

§

impl UnsafeUnpin for mbedtls_x509_csr

§

impl UnwindSafe for mbedtls_x509_csr

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.