From baf053684e358ec986a44edb49c4ead480534c05 Mon Sep 17 00:00:00 2001 From: Koen van Hove Date: Thu, 12 Dec 2024 14:28:36 +0100 Subject: [PATCH] =?UTF-8?q?Expose=20IdCert=E2=80=99s=20validity=20in=20pub?= =?UTF-8?q?lic=20API=20(#310)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ca/idcert.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ca/idcert.rs b/src/ca/idcert.rs index a8f27ec..63d4c2e 100644 --- a/src/ca/idcert.rs +++ b/src/ca/idcert.rs @@ -419,6 +419,10 @@ impl TbsIdCert { pub fn subject(&self) -> &Name { &self.subject } + + pub fn validity(&self) -> &Validity { + &self.validity + } } /// # Decoding and Encoding