From de5a1903b0064a22f363b374e5237debaea2779b Mon Sep 17 00:00:00 2001 From: Oliver Thallmair <41123425+olitha@users.noreply.github.com> Date: Fri, 5 Mar 2021 09:08:47 +0100 Subject: [PATCH] add x5c header (#182) * add x5c header * fix format --- src/header.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/header.rs b/src/header.rs index ba4b685..b45c191 100644 --- a/src/header.rs +++ b/src/header.rs @@ -37,6 +37,11 @@ pub struct Header { /// Defined in [RFC7515#4.1.5](https://tools.ietf.org/html/rfc7515#section-4.1.5). #[serde(skip_serializing_if = "Option::is_none")] pub x5u: Option, + /// X.509 certificate chain. A Vec of base64 encoded ASN.1 DER certificates. + /// + /// Defined in [RFC7515#](https://tools.ietf.org/html/rfc7515#section-4.1.6). + #[serde(skip_serializing_if = "Option::is_none")] + pub x5c: Option>, /// X.509 certificate thumbprint /// /// Defined in [RFC7515#4.1.7](https://tools.ietf.org/html/rfc7515#section-4.1.7). @@ -55,6 +60,7 @@ impl Header { kid: None, x5u: None, x5t: None, + x5c: None, } }