6 Commits

Author SHA1 Message Date
M. J. Fromberger
c57414b83b
Fix padding removal when decrypting a config file. (#36)
OpenSSL uses PKCS#5 padding, and the decryption code was not removing it
correctly. In some cases, this causes the last line of the decrypted config to
be mangled and produces invalid results.

To support this:

- Move config loading to gauth.LoadConfigFile.
- Inject a hook to read the user's password.
- Add unit tests that decryption doesn't corrupt the result.
- Update module dependencies.
- Update Go versions in CI, and fix some config-check warnings.
2020-10-26 18:42:15 -07:00
M. J. Fromberger
e30055f675 Add recent versions of Go to the .travis.yml. 2019-06-01 18:07:35 -07:00
Kevin E Rad
64a70580db Adding windows support (#22) 2019-06-02 00:02:45 +02:00
Pierre Carrier
f9b7c97790 .travis.yml: use containers 2015-12-03 18:33:32 +00:00
Pierre Carrier
836cbf8a9e .travis.yml: test all go releases 2015-12-03 18:30:41 +00:00
Pierre Carrier
2bab16649c add .travis.yml 2014-02-26 20:10:06 -08:00