From b0b60b937b73a2193e2008e2bd03abdd088b3ec0 Mon Sep 17 00:00:00 2001 From: Nicolas Bachschmidt Date: Tue, 17 Dec 2024 21:49:30 +0100 Subject: [PATCH] Make RDN.Attribute.Value conversion to ASN1Any public When the value is not a printable or UTF8 string, it may be useful to be able to access the underlying encoded bytes. --- Sources/X509/RDNAttribute.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/X509/RDNAttribute.swift b/Sources/X509/RDNAttribute.swift index 84442e6..82447b3 100644 --- a/Sources/X509/RDNAttribute.swift +++ b/Sources/X509/RDNAttribute.swift @@ -84,7 +84,7 @@ extension ASN1Any { extension ASN1Any { @inlinable - init(_ value: RelativeDistinguishedName.Attribute.Value) { + public init(_ value: RelativeDistinguishedName.Attribute.Value) { self = ASN1Any(value.storage) } }