Struct windows_ctl::CertificateTrustList
source · pub struct CertificateTrustList {
pub version: CtlVersion,
pub subject_usage: SubjectUsage,
pub list_identifier: Option<ListIdentifier>,
pub sequence_number: Option<Uint>,
pub this_update: Time,
pub next_update: Option<Time>,
pub subject_algorithm: AlgorithmIdentifier<Any>,
pub trusted_subjects: Option<TrustedSubjects>,
pub ctl_extensions: Option<Any>,
}
Expand description
The certificate trust list.
From MS-CAESO, pages 47-48:
CertificateTrustList ::= SEQUENCE {
version CTLVersion DEFAULT v1,
subjectUsage SubjectUsage,
listIdentifier ListIdentifier OPTIONAL,
sequenceNumber HUGEINTEGER OPTIONAL,
ctlThisUpdate ChoiceOfTime,
ctlNextUpdate ChoiceOfTime OPTIONAL,
subjectAlgorithm AlgorithmIdentifier,
trustedSubjects TrustedSubjects OPTIONAL,
ctlExtensions [0] EXPLICIT Extensions OPTIONAL
}
Fields§
§version: CtlVersion
This trust list’s version. The default version is 1.
subject_usage: SubjectUsage
X.509-style usage.
list_identifier: Option<ListIdentifier>
See MS-CAESO page 48.
sequence_number: Option<Uint>
Some kind of sequence number; purpose unknown.
this_update: Time
X.509-style time for when this CTL was produced/released.
next_update: Option<Time>
X.509-style time for when the next CTL will be produced/released.
subject_algorithm: AlgorithmIdentifier<Any>
Presumably the digest algorithm used to compute each TrustedSubjects
’s identifier.
trusted_subjects: Option<TrustedSubjects>
The list of trusted subjects in this CTL.
ctl_extensions: Option<Any>
Any X.509 style extensions.
Implementations§
Trait Implementations§
source§impl Clone for CertificateTrustList
impl Clone for CertificateTrustList
source§fn clone(&self) -> CertificateTrustList
fn clone(&self) -> CertificateTrustList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CertificateTrustList
impl Debug for CertificateTrustList
source§impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CertificateTrustList
impl<'__der_lifetime> DecodeValue<'__der_lifetime> for CertificateTrustList
source§impl<'__der_lifetime> EncodeValue for CertificateTrustList
impl<'__der_lifetime> EncodeValue for CertificateTrustList
source§impl PartialEq<CertificateTrustList> for CertificateTrustList
impl PartialEq<CertificateTrustList> for CertificateTrustList
source§fn eq(&self, other: &CertificateTrustList) -> bool
fn eq(&self, other: &CertificateTrustList) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CertificateTrustList
impl<'__der_lifetime> Sequence<'__der_lifetime> for CertificateTrustList
impl StructuralEq for CertificateTrustList
impl StructuralPartialEq for CertificateTrustList
Auto Trait Implementations§
impl RefUnwindSafe for CertificateTrustList
impl Send for CertificateTrustList
impl Sync for CertificateTrustList
impl Unpin for CertificateTrustList
impl UnwindSafe for CertificateTrustList
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Decode<'a> for Twhere
T: DecodeValue<'a> + FixedTag,
impl<'a, T> Decode<'a> for Twhere T: DecodeValue<'a> + FixedTag,
source§impl<T> Encode for Twhere
T: EncodeValue + Tagged,
impl<T> Encode for Twhere T: EncodeValue + Tagged,
source§fn encoded_len(&self) -> Result<Length, Error>
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer
.
source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.