Commit Graph

6 Commits

Author SHA1 Message Date
rhysd 905eb9f670 fix .tgz file is not handled on UncompressCommand 2019-12-19 16:28:00 +09:00
Tobias Kohlbau 116dfa144d Add hash and signature validation
Go-self-update lacks support for checking integrity of downloaded files.
For more advanced situation it's necessary to validate the hash or
verify against public signatures. This patch adds support for
SHA2 hash and ECDSA PublicKey signature validation.
SHA2 uses file with suffix `.sha256`, whereas ECDSA uses
`.sig` file endings. See `selfupdate/validate_test.go` for examples.

Signed-off-by: Tobias Kohlbau <t.kohlbau@myopenfactory.com>
2018-11-09 11:21:21 +01:00
rhysd 1064397350 fix tests which used a not-existing path 2018-01-03 23:13:23 +09:00
rhysd 0a9c0f7987 add tests for .tar.xz and .xz releases 2017-12-31 13:35:22 +09:00
rhysd 79d641a2f6 add tests for downloading and updating binary 2017-12-30 12:21:23 +09:00
rhysd 9cf8d19c61 add tests for uncompressing .zip and .gzip 2017-12-30 12:21:23 +09:00