Struct ot_certs::asn1::x509::X509

source ·
pub struct X509;

Implementations§

source§

impl X509

source

pub fn push_certificate<B: Builder>( builder: &mut B, tbs_cert_var: &Value<Vec<u8>>, sig: &Signature ) -> Result<()>

Push an X509 certificate into the builder. The TBS certificate is represented by a byte array (see push_x509_tbs_certificate).

source

pub fn push_tbs_certificate<B: Builder>( builder: &mut B, cert: &Certificate ) -> Result<()>

Push an X509 TBS certificate into the builder.

source

pub fn push_cert_extension<B: Builder>( builder: &mut B, ext: &CertificateExtension ) -> Result<()>

source

pub fn push_name<B: Builder>( builder: &mut B, name_hint: Option<String>, name: &Name ) -> Result<()>

source

pub fn push_basic_constraints_ext<B: Builder>( builder: &mut B, constraints: &BasicConstraints ) -> Result<()>

source

pub fn push_subject_alt_name_ext<B: Builder>( builder: &mut B, subject_alt_name: &Name ) -> Result<()>

source

pub fn push_key_usage_ext<B: Builder>( builder: &mut B, key_usage: &KeyUsage ) -> Result<()>

source

pub fn push_auth_key_id_ext<B: Builder>( builder: &mut B, auth_key_id: &Value<Vec<u8>> ) -> Result<()>

source

pub fn push_subject_key_id_ext<B: Builder>( builder: &mut B, auth_key_id: &Value<Vec<u8>> ) -> Result<()>

source

pub fn push_extension<B: Builder>( builder: &mut B, oid: &Oid, critical: bool, gen: impl FnOnce(&mut B) -> Result<()> ) -> Result<()>

source

pub fn push_public_key_info<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>

source

pub fn push_pubkey_alg_id<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>

source

pub fn push_public_key<B: Builder>( builder: &mut B, pubkey_info: &SubjectPublicKeyInfo ) -> Result<()>

source

pub fn push_ec_public_key_params<B: Builder>( builder: &mut B, pubkey: &EcPublicKeyInfo ) -> Result<()>

source

pub fn push_ec_public_key<B: Builder>( builder: &mut B, pubkey: &EcPublicKeyInfo ) -> Result<()>

source

pub fn push_validity<B: Builder>( builder: &mut B, not_before: &Value<String>, not_after: &Value<String> ) -> Result<()>

source

pub fn push_sig_alg_id<B: Builder>( builder: &mut B, sig: &Signature ) -> Result<()>

source

pub fn push_signature<B: Builder>( builder: &mut B, sig: &Signature ) -> Result<()>

source

pub fn push_ecdsa_sig<B: Builder>( builder: &mut B, sig: &EcdsaSignature ) -> Result<()>

Auto Trait Implementations§

§

impl RefUnwindSafe for X509

§

impl Send for X509

§

impl Sync for X509

§

impl Unpin for X509

§

impl UnwindSafe for X509

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

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

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V