From 58871c67ac698177b8cf64e0a799ee7f927220eb Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 31 Dec 2019 18:10:42 -0600 Subject: [PATCH] Expose signature and Signing String --- Cargo.toml | 2 +- src/verify.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index db3a9be..8c1d628 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "http-signature-normalization" description = "An HTTP Signatures library that leaves the signing to you" -version = "0.1.0" +version = "0.1.1" authors = ["asonix "] license-file = "LICENSE" readme = "README.md" diff --git a/src/verify.rs b/src/verify.rs index 839a402..3c8f38a 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -134,6 +134,16 @@ impl Unverified { self.algorithm.as_ref() } + /// Get the signing string used to create the signature + pub fn signing_string(&self) -> &str { + &self.signing_string + } + + /// Get the signature itself + pub fn signature(&self) -> &str { + &self.signature + } + /// Verify the signature with the signature and the signing string /// /// ```rust,ignore