Skip to content

Commit

Permalink
fix(#1210): fix impl of SubjectDirectoryAttributes (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo authored Jan 20, 2024
1 parent a269243 commit c410c4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x509-cert/src/ext/pkix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod policymap;
#[cfg(feature = "sct")]
pub mod sct;

use crate::attr::AttributeTypeAndValue;
use crate::attr::Attribute;

pub use access::{AccessDescription, AuthorityInfoAccessSyntax, SubjectInfoAccessSyntax};
pub use authkeyid::AuthorityKeyIdentifier;
Expand Down Expand Up @@ -120,13 +120,13 @@ impl_extension!(IssuerAltName, critical = false);
///
/// [RFC 5280 Section 4.2.1.8]: https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.8
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct SubjectDirectoryAttributes(pub Vec<AttributeTypeAndValue>);
pub struct SubjectDirectoryAttributes(pub Vec<Attribute>);

impl AssociatedOid for SubjectDirectoryAttributes {
const OID: ObjectIdentifier = ID_CE_SUBJECT_DIRECTORY_ATTRIBUTES;
}

impl_newtype!(SubjectDirectoryAttributes, Vec<AttributeTypeAndValue>);
impl_newtype!(SubjectDirectoryAttributes, Vec<Attribute>);
impl_extension!(SubjectDirectoryAttributes, critical = false);

/// InhibitAnyPolicy as defined in [RFC 5280 Section 4.2.1.14].
Expand Down

0 comments on commit c410c4b

Please sign in to comment.