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

Commit 152e1c9

Browse files
committed
feat: impl From<SessionId> for Name
1 parent db3344c commit 152e1c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/certs/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ impl TryFrom<Ia5String> for SessionId {
9191
}
9292
}
9393

94+
impl From<SessionId> for Name {
95+
fn from(value: SessionId) -> Self {
96+
value.to_rdn_sequence()
97+
}
98+
}
99+
94100
impl TryFrom<AttributeTypeAndValue> for SessionId {
95101
type Error = ConstraintError;
96102

0 commit comments

Comments
 (0)