Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit b3b7a02

Browse files
committed
push changes (squash)
1 parent d9b78ab commit b3b7a02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types/federation_id.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5-
use der::Encode;
5+
use der::asn1::PrintableString;
66
use regex::Regex;
77
use x509_cert::attr::AttributeTypeAndValue;
8+
use x509_cert::ext::pkix::name::DirectoryString;
89
use x509_cert::name::RdnSequence;
910

1011
use crate::errors::{ConstraintError, ERR_MSG_FEDERATION_ID_REGEX, InvalidInput};
@@ -77,6 +78,7 @@ impl TryFrom<&[AttributeTypeAndValue]> for DomainName {
7778

7879
impl From<DomainName> for AttributeTypeAndValue {
7980
fn from(value: DomainName) -> Self {
81+
let printable_string = DirectoryString::PrintableString(PrintableString::new(value.))
8082
todo!()
8183
}
8284
}

0 commit comments

Comments
 (0)