summaryrefslogtreecommitdiffstats
path: root/sqv/src/sqv.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-17 16:01:33 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-17 16:17:51 +0100
commit3dc2d24bc3920d0216ff7f19e01e4e073a292a24 (patch)
tree551997319c32bc9c684401a72301dfe41d85bd6c /sqv/src/sqv.rs
parent7cc22083ffc9874c39c957464bde9662e2fe8317 (diff)
tool: Add an option to specify the signing time.
- Add the option `--time` to the `sign` and `encrypt` subcommands to allow the user to set the signature's creation time. - Use the value of this option to select the signing keys.
Diffstat (limited to 'sqv/src/sqv.rs')
-rw-r--r--sqv/src/sqv.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/sqv/src/sqv.rs b/sqv/src/sqv.rs
index afa27833..73ff0abb 100644
--- a/sqv/src/sqv.rs
+++ b/sqv/src/sqv.rs
@@ -377,6 +377,8 @@ fn main() {
fn parse_iso8601(s: &str, pad_date_with: chrono::NaiveTime)
-> failure::Fallible<DateTime<Utc>>
{
+ // If you modify this function this function, synchronize the
+ // changes with the copy in sqv.rs!
for f in &[
"%Y-%m-%dT%H:%M:%S%#z",
"%Y-%m-%dT%H:%M:%S",