| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | examples/server: Cancel context | Adnan Maolood | 2021-02-24 | 1 | -1/+2 |
| | | |||||
| * | examples/server: Add logging middleware | Adnan Maolood | 2021-02-24 | 1 | -1/+51 |
| | | |||||
| * | examples/client: Use Response methods | Adnan Maolood | 2021-02-24 | 1 | -4/+4 |
| | | |||||
| * | examples/auth: Use Request.TLS method | Adnan Maolood | 2021-02-24 | 1 | -4/+6 |
| | | |||||
| * | 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 |
| | | |||||
| * | examples/stream: Simplify | Adnan Maolood | 2021-02-23 | 1 | -23/+6 |
| | | |||||
| * | Update examples | Adnan Maolood | 2021-02-23 | 3 | -3/+3 |
| | | |||||
| * | examples/stream: Remove /shutdown handler | Adnan Maolood | 2021-02-22 | 1 | -16/+3 |
| | | |||||
| * | examples/server: Shutdown on interrupt signal | Adnan Maolood | 2021-02-22 | 1 | -1/+21 |
| | | |||||
| * | examples/stream: Remove usage of Flusher | Adnan Maolood | 2021-02-22 | 1 | -10/+2 |
| | | |||||
| * | examples/stream: Showcase Server.Shutdown method | Adnan Maolood | 2021-02-21 | 1 | -2/+18 |
| | | |||||
| * | examples: Use context | Adnan Maolood | 2021-02-21 | 2 | -2/+3 |
| | | |||||
| * | Update examples | Adnan Maolood | 2021-02-20 | 3 | -48/+29 |
| | | |||||
| * | 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 |
| | | |||||
| * | examples/server: Use certificate.Store | Adnan Maolood | 2021-02-19 | 1 | -16/+22 |
| | | |||||
| * | examples: Use Server.Handler | Adnan Maolood | 2021-02-17 | 3 | -4/+7 |
| | | |||||
| * | examples: Use new ResponseWriter interface | Adnan Maolood | 2021-02-17 | 2 | -5/+5 |
| | | |||||
| * | Move ResponseWriter.Flush to Flusher interface | Adnan Maolood | 2021-02-17 | 1 | -1/+7 |
| | | |||||
| * | examples/server: Use os.DirFS | Adnan Maolood | 2021-02-17 | 1 | -1/+2 |
| | | |||||
| * | Replace uses of ioutil with io | Adnan Maolood | 2021-02-16 | 1 | -2/+2 |
| | | |||||
| * | Update examples/auth.go | Adnan Maolood | 2021-02-16 | 1 | -4/+4 |
| | | |||||
| * | 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 |
| | | |||||
| * | Make ResponseWriter an interface | Adnan Maolood | 2021-02-09 | 2 | -3/+3 |
| | | |||||
| * | Use plain integers to represent status codes | Adnan Maolood | 2021-02-09 | 1 | -2/+2 |
| | | |||||
| * | Update examples | Adnan Maolood | 2021-01-25 | 3 | -3/+3 |
| | | |||||
| * | Guarantee that (*Response).Body is not nilv0.1.13 | Adnan Maolood | 2021-01-15 | 1 | -1/+1 |
| | | |||||
| * | server: Rename Register to Handle | Adnan Maolood | 2021-01-14 | 3 | -3/+3 |
| | | |||||
| * | Update examples | Adnan Maolood | 2021-01-14 | 4 | -7/+10 |
| | | |||||
| * | Update examples/auth.go | Adnan Maolood | 2021-01-14 | 1 | -4/+4 |
| | | |||||
| * | 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 |
| | | |||||
| * | Update examples/stream.go | Adnan Maolood | 2021-01-10 | 1 | -3/+29 |
| | | |||||
| * | 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 |
| | | |||||
| * | Add ResponseWriter.Flush function | Adnan Maolood | 2020-12-18 | 1 | -1/+2 |
| | | |||||
| * | Add examples/stream.go | Adnan Maolood | 2020-12-18 | 1 | -0/+43 |
| | | |||||
| * | examples: Add missing descriptions | Adnan Maolood | 2020-12-18 | 3 | -0/+6 |
| | | |||||
| * | examples/html: Read from stdin and write to stdout | Adnan Maolood | 2020-12-18 | 1 | -58/+59 |
| | | |||||
| * | Remove Input function | Adnan Maolood | 2020-12-18 | 1 | -2/+2 |
| | | |||||
| * | client: Remove GetInput and CheckRedirect callbacks | Adnan Maolood | 2020-12-18 | 1 | -33/+80 |
| | | |||||
| * | examples/auth: Fix crash on changing username | Adnan Maolood | 2020-12-17 | 1 | -1/+7 |
| | | |||||
| * | Decouple Client from KnownHostsFile | Adnan Maolood | 2020-12-17 | 1 | -22/+33 |
| | | |||||
| * | client: Add GetCertificate callback | Adnan Maolood | 2020-12-17 | 1 | -7/+0 |
| | | |||||
| * | examples/server: Increase certificate duration | Adnan Maolood | 2020-11-27 | 1 | -1/+1 |
| | | |||||
| * | Update examples/auth.go | Adnan Maolood | 2020-11-25 | 1 | -10/+1 |
| | | |||||