From 792450cbb751b1c5ba3d6114d883ec3661059e18 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Mon, 24 Jul 2023 10:17:17 -0400 Subject: [PATCH] name: devolve `NameReadable` variant Signed-off-by: William Woodruff --- src/rust/cryptography-x509/src/name.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rust/cryptography-x509/src/name.rs b/src/rust/cryptography-x509/src/name.rs index f53e342cbf33..5c53c76c6844 100644 --- a/src/rust/cryptography-x509/src/name.rs +++ b/src/rust/cryptography-x509/src/name.rs @@ -4,9 +4,11 @@ use crate::common; +pub type NameReadable<'a> = asn1::SequenceOf<'a, asn1::SetOf<'a, common::AttributeTypeValue<'a>>>; + pub type Name<'a> = common::Asn1ReadableOrWritable< 'a, - asn1::SequenceOf<'a, asn1::SetOf<'a, common::AttributeTypeValue<'a>>>, + NameReadable<'a>, asn1::SequenceOfWriter< 'a, asn1::SetOfWriter<'a, common::AttributeTypeValue<'a>, Vec>>,