aboutsummaryrefslogtreecommitdiffstats
path: root/license-generator/Cargo.lock
diff options
context:
space:
mode:
authorTeddy Wing2018-11-10 20:39:48 +0100
committerTeddy Wing2018-11-10 20:39:48 +0100
commit20f7a268cce05cd63842adbc7a5d05d4d4cc5bc7 (patch)
tree4b7f5318f7ca07ab6087295510776c02a684a28c /license-generator/Cargo.lock
parentd2587251a9b1b1d4d8f887fe079a3e0bbc017de8 (diff)
downloaddome-key-web-20f7a268cce05cd63842adbc7a5d05d4d4cc5bc7.tar.bz2
paddle::verify_signature(): Extract signature from params
Make it easier on users by not requiring them to pass a signature into the method. This means they don't have to extract the `p_signature` param and base64 decode it themselves. Essentially, we want to move the code from `request` that removes the `p_signature` key and base64 decodes it into the `paddle::verify_signature()` function. We need to make the string-like type params in `verify_signature()` conform additionally to `PartialEq<str>` and `PartialOrd`. Doing so allows us to find the key "p_signature". To remove the `p_signature` param from the iterator, we partition it into two iterators: one for the `p_signature` entry, and another for the rest. We then extract the value of `p_signature` and base64 decode it for verification. Add a new error type in case no `p_signature` entry is found in the iterator.
Diffstat (limited to 'license-generator/Cargo.lock')
-rw-r--r--license-generator/Cargo.lock2
1 files changed, 1 insertions, 1 deletions
diff --git a/license-generator/Cargo.lock b/license-generator/Cargo.lock
index aecdcce..4540e25 100644
--- a/license-generator/Cargo.lock
+++ b/license-generator/Cargo.lock
@@ -282,7 +282,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
name = "license-generator"
version = "0.0.1"
dependencies = [
- "base64 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"fastcgi 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -476,6 +475,7 @@ dependencies = [
name = "paddle"
version = "0.0.1"
dependencies = [
+ "base64 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)",
"error-chain 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
"openssl 0.10.15 (registry+https://github.com/rust-lang/crates.io-index)",
]