Skip to content

Commit

Permalink
x509-cert: missing extension implementations (RustCrypto#1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo authored May 4, 2023
1 parent ade4dc3 commit 3b3def5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x509-cert/src/ext/pkix/crl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl AssociatedOid for BaseCrlNumber {
}

impl_newtype!(BaseCrlNumber, Uint);
impl_extension!(BaseCrlNumber, critical = true);

/// CrlDistributionPoints as defined in [RFC 5280 Section 4.2.1.13].
///
Expand Down Expand Up @@ -117,3 +118,5 @@ pub enum CrlReason {
impl AssociatedOid for CrlReason {
const OID: ObjectIdentifier = ID_CE_CRL_REASONS;
}

impl_extension!(CrlReason, critical = false);
2 changes: 2 additions & 0 deletions x509-cert/src/ext/pkix/crl/dp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ impl AssociatedOid for IssuingDistributionPoint {
const OID: ObjectIdentifier = ID_PE_SUBJECT_INFO_ACCESS;
}

impl_extension!(IssuingDistributionPoint, critical = true);

/// DistributionPoint as defined in [RFC 5280 Section 4.2.1.13].
///
/// ```text
Expand Down
2 changes: 2 additions & 0 deletions x509-cert/src/ext/pkix/keyusage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ impl AssociatedOid for PrivateKeyUsagePeriod {
const OID: ObjectIdentifier = ID_CE_PRIVATE_KEY_USAGE_PERIOD;
}

impl_extension!(PrivateKeyUsagePeriod, critical = false);

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 3b3def5

Please sign in to comment.