-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to support ACME, including JWS
- Loading branch information
andrew
committed
Jan 10, 2024
1 parent
193eb8d
commit fd60bf2
Showing
5 changed files
with
123 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
//! JSON Web Signatures data type. | ||
use std::marker::PhantomData; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
/// This is a serde-compatible JSON Web Signature structure. | ||
#[derive(Debug, Clone, Serialize, Deserialize)] | ||
pub struct Jws<C> { | ||
/// The base64 encoded header data. | ||
/// | ||
/// Defined in [RFC7515#3.2](https://tools.ietf.org/html/rfc7515#section-3.2). | ||
pub protected: String, | ||
/// The base64 encoded claims data. | ||
/// | ||
/// Defined in [RFC7515#3.2](https://tools.ietf.org/html/rfc7515#section-3.2). | ||
pub payload: String, | ||
/// The signature on the other fields. | ||
/// | ||
/// Defined in [RFC7515#3.2](https://tools.ietf.org/html/rfc7515#section-3.2). | ||
pub signature: String, | ||
/// Unused, for associating type metadata. | ||
#[serde(skip)] | ||
pub _pd: PhantomData<C>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters