Commit Graph

58 Commits

Author SHA1 Message Date
Thomas Gideon 22bedd7049 Update badge 2022-02-19 08:36:26 -05:00
Thomas Gideon 11aa5a3f7c Increment version 2022-02-19 08:32:44 -05:00
Vincent Ambo 025b143d88 Replace usage of chrono with time crate
The time crate is the underlying crate which chrono uses for its
various operations.

Unfortunately, chrono is unmaintained and older versions of the time
crate have security vulnerabilites[0] which are unfixed in chrono[1].

The medallion code does not use any chrono-specific features and all
uses of it could be trivially replaced with the underlying time
structs.

Note that this change adds calls to `expect`. Where these calls are
made, the previous chrono functions also panicked internally if
out-of-range values were passed.

We noticed this issue while doing a similar refactoring in a program
that also uses medallion[2].

[0]: https://rustsec.org/advisories/RUSTSEC-2020-0071.html
[1]: https://rustsec.org/advisories/RUSTSEC-2020-0159.html
[2]: https://cl.tvl.fyi/c/depot/+/5311
2022-02-19 08:29:40 -05:00
Thomas Gideon 970f33d596 Remove github references 2021-12-03 14:11:02 -05:00
Thomas Gideon 8e78ba94f8 Move repository 2021-12-03 14:09:49 -05:00
Thomas Gideon ab5710a2c7 Update base64 dep 2021-04-20 09:25:42 -04:00
Thomas Gideon e543beb804 Update dependency check badge. 2020-06-23 12:25:19 -04:00
Thomas Gideon 4776132e51 Migrated to anyhow and chrono from failure and time crates. 2020-06-22 11:52:53 -04:00
Thomas Gideon 30ff924e9a Update docs 2018-11-18 10:54:02 -05:00
Thomas Gideon 661552d878 Bump version 2018-11-18 10:49:52 -05:00
Thomas Gideon a03e09282d Clean up examples 2018-11-18 10:49:23 -05:00
Thomas Gideon b312bae4c7 Fix repo link 2018-11-18 10:49:08 -05:00
Thomas Gideon c9a09dd33c Update deps.rs version 2018-11-18 10:36:40 -05:00
Thomas Gideon a859e2fd02 Fix links 2018-11-16 17:29:37 -05:00
Thomas Gideon 7fcae534f2
Switch to failure (#6)
* Switch to failure

* Bump version
2018-11-16 17:28:01 -05:00
Thomas Gideon 1b594ff60e
Add defaults for generic parameters (#5) 2018-08-05 12:03:58 -04:00
Thomas Gideon cb304d20e9 Add deps.rs badge 2018-03-12 13:21:40 -04:00
Thomas Gideon 35c0178572 Version bump. 2018-03-12 09:44:06 -04:00
Thomas Gideon aac6d9f7b5 Lints and formatting 2018-03-12 09:43:57 -04:00
Thomas Gideon ccc6657083 Update deps. 2018-03-12 09:38:01 -04:00
Thomas Gideon 5cb408e16a Remove macOS 2017-11-29 12:59:28 -05:00
Thomas Gideon 91e93dd818 Add macOS to travis CI 2017-11-29 12:37:46 -05:00
Thomas Gideon 42824a133e Update to serde 1.0 (#4)
* Try updating service to 1.0

* Strip bounds from structs

* Clean bounds from Default impl

* Remove pem files, clean up some documentation

* Add badges, categories
2017-08-10 09:39:35 -04:00
Thomas Gideon a265a703d6 Merge branch 'master' of github.com:commandline/medallion 2017-08-10 09:33:23 -04:00
Thomas Gideon f1db24606b Upgrade to Serde 1.0 (#2)
* Bump openssl
* Fix naive code that was breaking serde 1.0
2017-05-01 13:38:04 -04:00
Thomas Gideon d70d814ae3 Bump openssl 2017-04-20 13:24:00 -04:00
Thomas Gideon 0aa3aa6faa Verify not before and expiration claims, if present 2017-04-05 16:33:39 -04:00
Thomas Gideon 179b2f8554 Fix link markdown 2017-03-23 18:19:42 -04:00
Thomas Gideon 52452923d2 Implement Error, Display for Error enum 2017-03-14 14:40:52 -04:00
Thomas Gideon 053327f7dd Add a few more keywords. 2017-03-14 14:26:33 -04:00
Thomas Gideon 3c9fd6b13b Refactor header claims (#1)
Simplify customization, bump to 2.0.0.
2017-03-07 14:03:24 -05:00
Thomas Gideon 9df2ac741e Stop using padding 2017-02-20 13:05:06 -05:00
Thomas Gideon 8826655201 Slight format tweak 2017-02-17 12:59:55 -05:00
Thomas Gideon d124a812cb Update version 2017-02-17 12:55:07 -05:00
Thomas Gideon a57e582337 De-dupe some test code 2017-02-17 12:54:50 -05:00
Thomas Gideon 3c95e1b163 Change to ? operator 2017-02-17 12:39:28 -05:00
Thomas Gideon 94b83d12aa Clean up error handling in crypt 2017-02-17 11:53:12 -05:00
Thomas Gideon 2442a6f2c0 Correct required traits, attributes 2017-02-17 11:30:19 -05:00
Thomas Gideon db05e08580 Add badges 2017-02-17 11:29:57 -05:00
Thomas Gideon b33e543341 Fix home page link. 2017-02-15 15:50:33 -05:00
Thomas Gideon a7e9efa012 Add badge to README 2017-02-15 15:46:23 -05:00
Thomas Gideon e24df1568d More info/config for Travis 2017-02-15 15:42:06 -05:00
Thomas Gideon 6f7daf9a87 Fill out rustdoc 2017-02-15 15:41:52 -05:00
Thomas Gideon acee9a8494 Add Travis 2017-02-15 15:34:38 -05:00
Thomas Gideon 91a1f88256 Release 1 2017-02-15 13:54:39 -05:00
Thomas Gideon 7cc935244d Finish clean up 2017-02-15 13:53:00 -05:00
Thomas Gideon 29037a0df7 Change one operation over to new higher level fn 2017-02-15 13:50:12 -05:00
Thomas Gideon cfd61ae991 Change remaining tests 2017-02-15 13:47:36 -05:00
Thomas Gideon ef8680fe3d Add new higher level fn's, switch a test 2017-02-15 13:45:13 -05:00
Thomas Gideon 3c624ad482 Rename fn's to be consistent 2017-02-15 13:40:34 -05:00