Skip to content

Commit

Permalink
Revert "x509-cert: specify concrete types to help the compiler (#1441)"
Browse files Browse the repository at this point in the history
This reverts commit 7a2d38a.
  • Loading branch information
baloo committed Jul 9, 2024
1 parent 7a2d38a commit 886988b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion x509-cert/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod pkix;
pub struct Extension {
pub extn_id: ObjectIdentifier,

#[asn1(default = "bool::default")]
#[asn1(default = "Default::default")]
pub critical: bool,

pub extn_value: OctetString,
Expand Down
2 changes: 1 addition & 1 deletion x509-cert/src/ext/pkix/constraints/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use der::Sequence;
#[derive(Clone, Debug, Eq, PartialEq, Sequence)]
#[allow(missing_docs)]
pub struct BasicConstraints {
#[asn1(default = "bool::default")]
#[asn1(default = "Default::default")]
pub ca: bool,
pub path_len_constraint: Option<u8>,
}
Expand Down
2 changes: 1 addition & 1 deletion x509-cert/src/ext/pkix/constraints/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct GeneralSubtree {
#[asn1(
context_specific = "0",
tag_mode = "IMPLICIT",
default = "u32::default"
default = "Default::default"
)]
pub minimum: u32,

Expand Down
8 changes: 4 additions & 4 deletions x509-cert/src/ext/pkix/crl/dp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ pub struct IssuingDistributionPoint {
#[asn1(
context_specific = "1",
tag_mode = "IMPLICIT",
default = "bool::default"
default = "Default::default"
)]
pub only_contains_user_certs: bool,

#[asn1(
context_specific = "2",
tag_mode = "IMPLICIT",
default = "bool::default"
default = "Default::default"
)]
pub only_contains_ca_certs: bool,

Expand All @@ -48,14 +48,14 @@ pub struct IssuingDistributionPoint {
#[asn1(
context_specific = "4",
tag_mode = "IMPLICIT",
default = "bool::default"
default = "Default::default"
)]
pub indirect_crl: bool,

#[asn1(
context_specific = "5",
tag_mode = "IMPLICIT",
default = "bool::default"
default = "Default::default"
)]
pub only_contains_attribute_certs: bool,
}
Expand Down

0 comments on commit 886988b

Please sign in to comment.