From c410c4bc823a9f0a966d0332560470549d840fae Mon Sep 17 00:00:00 2001 From: YX Cao Date: Fri, 19 Jan 2024 17:35:03 -0800 Subject: [PATCH] fix(#1210): fix impl of SubjectDirectoryAttributes (#1286) --- x509-cert/src/ext/pkix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x509-cert/src/ext/pkix.rs b/x509-cert/src/ext/pkix.rs index 2c7a4ffe7..911bc4664 100644 --- a/x509-cert/src/ext/pkix.rs +++ b/x509-cert/src/ext/pkix.rs @@ -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; @@ -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); +pub struct SubjectDirectoryAttributes(pub Vec); impl AssociatedOid for SubjectDirectoryAttributes { const OID: ObjectIdentifier = ID_CE_SUBJECT_DIRECTORY_ATTRIBUTES; } -impl_newtype!(SubjectDirectoryAttributes, Vec); +impl_newtype!(SubjectDirectoryAttributes, Vec); impl_extension!(SubjectDirectoryAttributes, critical = false); /// InhibitAnyPolicy as defined in [RFC 5280 Section 4.2.1.14].