Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jose-jws: remove broken url feature #75

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions jose-jws/src/head.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ pub struct Protected {
#[serde(skip_serializing_if = "Option::is_none", default)]
pub crit: Option<Vec<String>>,

/// RFC 8555 Section 6.4.1
#[cfg(feature = "url")]
#[serde(skip_serializing_if = "Option::is_none", default)]
pub url: Option<url::Url>,

/// RFC 8555 Section 6.5.2
#[serde(skip_serializing_if = "Option::is_none", default)]
pub nonce: Option<Bytes>,
Expand All @@ -52,9 +47,6 @@ impl Default for Protected {
nonce: None,
b64: true,
oth: Unprotected::default(),

#[cfg(feature = "url")]
url: None,
}
}
}
Expand All @@ -66,11 +58,6 @@ pub struct Unprotected {
#[serde(skip_serializing_if = "Option::is_none", default)]
pub alg: Option<Signing>,

/// RFC 7515 Section 4.1.2
#[cfg(feature = "url")]
#[serde(skip_serializing_if = "Option::is_none", default)]
pub jku: Option<url::Url>,

/// RFC 7515 Section 4.1.3
#[serde(skip_serializing_if = "Option::is_none", default)]
pub jwk: Option<Jwk>,
Expand All @@ -79,11 +66,6 @@ pub struct Unprotected {
#[serde(skip_serializing_if = "Option::is_none", default)]
pub kid: Option<String>,

/// RFC 7515 Section 4.1.5
#[serde(skip_serializing_if = "Option::is_none", default)]
#[cfg(feature = "url")]
pub x5u: Option<url::Url>,

/// RFC 7515 Section 4.1.6
#[serde(skip_serializing_if = "Option::is_none", default)]
pub x5c: Option<Vec<Bytes<Box<[u8]>, Base64>>>, // base64, not base64url
Expand Down