| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Remove StatusSensitiveInput | Adnan Maolood | 2021-03-08 | 1 | -2/+2 |
| | | |||||
| * | examples/client: Fix certificate trust check | Adnan Maolood | 2021-03-08 | 1 | -2/+2 |
| | | |||||
| * | tofu: Use base64-encoded sha256 fingerprints | Adnan Maolood | 2021-03-06 | 1 | -2/+1 |
| | | |||||
| * | tofu: Remove expiration timestamp from known hosts | Adnan Maolood | 2021-03-04 | 1 | -4/+2 |
| | | |||||
| * | Update examples/client.go | Adnan Maolood | 2021-02-24 | 1 | -2/+2 |
| | | |||||
| * | response: Revert to using fields instead of methods | Adnan Maolood | 2021-02-24 | 1 | -5/+5 |
| | | |||||
| * | examples/client: Fix display of response status | Adnan Maolood | 2021-02-24 | 1 | -1/+1 |
| | | |||||
| * | examples/client: Use Response methods | Adnan Maolood | 2021-02-24 | 1 | -4/+4 |
| | | |||||
| * | Update examples/client.go | Adnan Maolood | 2021-02-23 | 1 | -2/+2 |
| | | |||||
| * | examples/client: Stream response body | Adnan Maolood | 2021-02-23 | 1 | -3/+3 |
| | | |||||
| * | Make Status a type | Adnan Maolood | 2021-02-20 | 1 | -2/+2 |
| | | | | | Using a type is better than using an integer. | ||||
| * | examples/client: Remove dependency on go-xdg | Adnan Maolood | 2021-02-20 | 1 | -2/+8 |
| | | |||||
| * | examples/client: Use context | Adnan Maolood | 2021-02-20 | 1 | -1/+2 |
| | | |||||
| * | Replace uses of ioutil with io | Adnan Maolood | 2021-02-16 | 1 | -2/+2 |
| | | |||||
| * | Update examples/client.go | Adnan Maolood | 2021-02-14 | 1 | -3/+3 |
| | | |||||
| * | examples/client: Fix opening of known hosts file | Adnan Maolood | 2021-02-09 | 1 | -1/+1 |
| | | |||||
| * | Use plain integers to represent status codes | Adnan Maolood | 2021-02-09 | 1 | -2/+2 |
| | | |||||
| * | Guarantee that (*Response).Body is not nilv0.1.13 | Adnan Maolood | 2021-01-15 | 1 | -1/+1 |
| | | |||||
| * | Update examples/client.go | Adnan Maolood | 2021-01-14 | 1 | -5/+13 |
| | | |||||
| * | tofu: Refactor | Hugo Wetterberg | 2021-01-14 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes underlying file handling and known hosts parsing. A known hosts file opened through Load() never closed the underlying file. During known hosts parsing most errors were unchecked, or just led to the line being skipped. I removed the KnownHosts type, which didn't really have a role after the refactor. The embedding of KnownHosts in KnownHosts file has been removed as it also leaked the map unprotected by the mutex. The Fingerprint type is now KnownHost and has taken over the responsibility of marshalling and unmarshalling. SetOutput now takes a WriteCloser so that we can close the underlying writer when it's replaced, or when it's explicitly closed through the new Close() function. KnownHostsFile.Add() now also writes the known host to the output if set. I think that makes sense expectation-wise for the type. Turned WriteAll() into WriteTo() to conform with the io.WriterTo interface. Load() is now Open() to better reflect the fact that a file is opened, and kept open. It can now also return errors from the parsing process. The parser does a lot more error checking, and this might be an area where I've changed a desired behaviour as invalid entries no longer are ignored, but aborts the parsing process. That could be changed to a warning, or some kind of parsing feedback. I added KnownHostsFile.TOFU() to fill the developer experience gap that was left after the client no longer knows about KnownHostsFile. It implements a basic non-interactive TOFU flow. | ||||
| * | Move tofu.go to a subpackagev0.1.11 | Adnan Maolood | 2021-01-10 | 1 | -2/+3 |
| | | |||||
| * | Rename status.Message to status.Meta | Adnan Maolood | 2021-01-10 | 1 | -1/+1 |
| | | |||||
| * | examples/client: Fix fingerprint checkv0.1.10 | Adnan Maolood | 2020-12-19 | 1 | -3/+6 |
| | | |||||
| * | examples: Add missing descriptions | Adnan Maolood | 2020-12-18 | 1 | -0/+2 |
| | | |||||
| * | client: Remove GetInput and CheckRedirect callbacks | Adnan Maolood | 2020-12-18 | 1 | -33/+80 |
| | | |||||
| * | Decouple Client from KnownHostsFile | Adnan Maolood | 2020-12-17 | 1 | -22/+33 |
| | | |||||
| * | client: Add GetCertificate callback | Adnan Maolood | 2020-12-17 | 1 | -7/+0 |
| | | |||||
| * | Remove top-level Get and Do functions | Adnan Maolood | 2020-11-09 | 1 | -2/+4 |
| | | |||||
| * | Don't guarantee that (*Response).Body is always non-nil | Adnan Maolood | 2020-11-08 | 1 | -1/+1 |
| | | |||||
| * | Refactor KnownHosts | Adnan Maolood | 2020-11-05 | 1 | -1/+2 |
| | | |||||
| * | examples: Tweak client and server timeouts | adnano | 2020-11-01 | 1 | -1/+1 |
| | | |||||
| * | Guarantee that (*Response).Body is non-nil | Adnan Maolood | 2020-10-31 | 1 | -3/+4 |
| | | |||||
| * | Fix examples/client.go | Adnan Maolood | 2020-10-31 | 1 | -0/+14 |
| | | |||||
| * | Add option to skip trust checks | Adnan Maolood | 2020-10-31 | 1 | -14/+0 |
| | | |||||
| * | Refactor client.TrustCertificate workflow | Adnan Maolood | 2020-10-31 | 1 | -74/+34 |
| | | |||||
| * | Implement Client connection timeout | Adnan Maolood | 2020-10-31 | 1 | -0/+1 |
| | | |||||
| * | Add optional host argument in examples/client.gov0.1.3 | Adnan Maolood | 2020-10-28 | 1 | -1/+5 |
| | | |||||
| * | Refactor client certificates | Adnan Maolood | 2020-10-28 | 1 | -18/+7 |
| | | |||||
| * | Ensure absolute paths in client certificate store | Adnan Maolood | 2020-10-27 | 1 | -1/+1 |
| | | |||||
| * | Add Client.GetInput field | Adnan Maolood | 2020-10-27 | 1 | -20/+2 |
| | | |||||
| * | Restrict client certificates to certain paths | Adnan Maolood | 2020-10-27 | 1 | -6/+10 |
| | | |||||
| * | client: Follow redirects | Adnan Maolood | 2020-10-27 | 1 | -30/+19 |
| | | |||||
| * | Add (*Client).Get function | Adnan Maolood | 2020-10-27 | 1 | -13/+2 |
| | | |||||
| * | Make (*Response).Body an io.ReadCloser | Adnan Maolood | 2020-10-27 | 1 | -1/+7 |
| | | |||||
| * | Fix examples | Adnan Maolood | 2020-10-27 | 1 | -1/+1 |
| | | |||||
| * | Add NewRequestFromURL function | Adnan Maolood | 2020-10-27 | 1 | -6/+9 |
| | | |||||
| * | Rename repository to go-gemini | Adnan Maolood | 2020-10-24 | 1 | -1/+1 |
| | | |||||
| * | Move certificate verification code to VerifyConnection | adnano | 2020-10-13 | 1 | -1/+1 |
| | | |||||
| * | Rename (*KnownHosts).Load to LoadDefault | adnano | 2020-10-12 | 1 | -1/+1 |
| | | |||||
| * | Update documentation | adnano | 2020-10-12 | 1 | -0/+165 |