Skip to content

Commit

Permalink
crmf: fix CertTemplate validity (#1352)
Browse files Browse the repository at this point in the history
Should have used `OptionalValidity`, not `Validity`
  • Loading branch information
carl-wallace authored Feb 15, 2024
1 parent 41a5112 commit b7a5924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crmf/src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use x509_cert::attr::Attribute;
use x509_cert::ext::Extensions;
use x509_cert::name::Name;
use x509_cert::serial_number::SerialNumber;
use x509_cert::time::{Time, Validity};
use x509_cert::time::Time;
use x509_cert::Version;

use crate::controls::Controls;
Expand Down Expand Up @@ -113,7 +113,7 @@ pub struct CertTemplate {
#[asn1(context_specific = "3", tag_mode = "EXPLICIT", optional = "true")]
pub issuer: Option<Name>,
#[asn1(context_specific = "4", tag_mode = "IMPLICIT", optional = "true")]
pub validity: Option<Validity>,
pub validity: Option<OptionalValidity>,
#[asn1(context_specific = "5", tag_mode = "EXPLICIT", optional = "true")]
pub subject: Option<Name>,
#[asn1(context_specific = "6", tag_mode = "IMPLICIT", optional = "true")]
Expand Down

0 comments on commit b7a5924

Please sign in to comment.