diff --git a/jose-jws/src/head.rs b/jose-jws/src/head.rs index 9153ba1..91f52e7 100644 --- a/jose-jws/src/head.rs +++ b/jose-jws/src/head.rs @@ -27,11 +27,6 @@ pub struct Protected { #[serde(skip_serializing_if = "Option::is_none", default)] pub crit: Option>, - /// RFC 8555 Section 6.4.1 - #[cfg(feature = "url")] - #[serde(skip_serializing_if = "Option::is_none", default)] - pub url: Option, - /// RFC 8555 Section 6.5.2 #[serde(skip_serializing_if = "Option::is_none", default)] pub nonce: Option, @@ -52,9 +47,7 @@ impl Default for Protected { nonce: None, b64: true, oth: Unprotected::default(), - - #[cfg(feature = "url")] - url: None, + oth: Unprotected::default(), } } } @@ -66,11 +59,6 @@ pub struct Unprotected { #[serde(skip_serializing_if = "Option::is_none", default)] pub alg: Option, - /// RFC 7515 Section 4.1.2 - #[cfg(feature = "url")] - #[serde(skip_serializing_if = "Option::is_none", default)] - pub jku: Option, - /// RFC 7515 Section 4.1.3 #[serde(skip_serializing_if = "Option::is_none", default)] pub jwk: Option, @@ -79,11 +67,6 @@ pub struct Unprotected { #[serde(skip_serializing_if = "Option::is_none", default)] pub kid: Option, - /// RFC 7515 Section 4.1.5 - #[serde(skip_serializing_if = "Option::is_none", default)] - #[cfg(feature = "url")] - pub x5u: Option, - /// RFC 7515 Section 4.1.6 #[serde(skip_serializing_if = "Option::is_none", default)] pub x5c: Option, Base64>>>, // base64, not base64url