Skip to content

Commit

Permalink
fix(#1210): fix impl of SubjectDirectoryAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Aug 30, 2023
1 parent cadf42a commit cb380d3
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 @@ -10,7 +10,7 @@ mod authkeyid;
mod keyusage;
mod policymap;

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

pub use access::{AccessDescription, AuthorityInfoAccessSyntax, SubjectInfoAccessSyntax};
pub use authkeyid::AuthorityKeyIdentifier;
Expand Down Expand Up @@ -112,13 +112,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 cb380d3

Please sign in to comment.