aboutsummaryrefslogtreecommitdiff
path: root/examples/client.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove StatusSensitiveInputAdnan Maolood2021-03-081-2/+2
|
* examples/client: Fix certificate trust checkAdnan Maolood2021-03-081-2/+2
|
* tofu: Use base64-encoded sha256 fingerprintsAdnan Maolood2021-03-061-2/+1
|
* tofu: Remove expiration timestamp from known hostsAdnan Maolood2021-03-041-4/+2
|
* Update examples/client.goAdnan Maolood2021-02-241-2/+2
|
* response: Revert to using fields instead of methodsAdnan Maolood2021-02-241-5/+5
|
* examples/client: Fix display of response statusAdnan Maolood2021-02-241-1/+1
|
* examples/client: Use Response methodsAdnan Maolood2021-02-241-4/+4
|
* Update examples/client.goAdnan Maolood2021-02-231-2/+2
|
* examples/client: Stream response bodyAdnan Maolood2021-02-231-3/+3
|
* Make Status a typeAdnan Maolood2021-02-201-2/+2
| | | | Using a type is better than using an integer.
* examples/client: Remove dependency on go-xdgAdnan Maolood2021-02-201-2/+8
|
* examples/client: Use contextAdnan Maolood2021-02-201-1/+2
|
* Replace uses of ioutil with ioAdnan Maolood2021-02-161-2/+2
|
* Update examples/client.goAdnan Maolood2021-02-141-3/+3
|
* examples/client: Fix opening of known hosts fileAdnan Maolood2021-02-091-1/+1
|
* Use plain integers to represent status codesAdnan Maolood2021-02-091-2/+2
|
* Guarantee that (*Response).Body is not nilv0.1.13Adnan Maolood2021-01-151-1/+1
|
* Update examples/client.goAdnan Maolood2021-01-141-5/+13
|
* tofu: RefactorHugo Wetterberg2021-01-141-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.11Adnan Maolood2021-01-101-2/+3
|
* Rename status.Message to status.MetaAdnan Maolood2021-01-101-1/+1
|
* examples/client: Fix fingerprint checkv0.1.10Adnan Maolood2020-12-191-3/+6
|
* examples: Add missing descriptionsAdnan Maolood2020-12-181-0/+2
|
* client: Remove GetInput and CheckRedirect callbacksAdnan Maolood2020-12-181-33/+80
|
* Decouple Client from KnownHostsFileAdnan Maolood2020-12-171-22/+33
|
* client: Add GetCertificate callbackAdnan Maolood2020-12-171-7/+0
|
* Remove top-level Get and Do functionsAdnan Maolood2020-11-091-2/+4
|
* Don't guarantee that (*Response).Body is always non-nilAdnan Maolood2020-11-081-1/+1
|
* Refactor KnownHostsAdnan Maolood2020-11-051-1/+2
|
* examples: Tweak client and server timeoutsadnano2020-11-011-1/+1
|
* Guarantee that (*Response).Body is non-nilAdnan Maolood2020-10-311-3/+4
|
* Fix examples/client.goAdnan Maolood2020-10-311-0/+14
|
* Add option to skip trust checksAdnan Maolood2020-10-311-14/+0
|
* Refactor client.TrustCertificate workflowAdnan Maolood2020-10-311-74/+34
|
* Implement Client connection timeoutAdnan Maolood2020-10-311-0/+1
|
* Add optional host argument in examples/client.gov0.1.3Adnan Maolood2020-10-281-1/+5
|
* Refactor client certificatesAdnan Maolood2020-10-281-18/+7
|
* Ensure absolute paths in client certificate storeAdnan Maolood2020-10-271-1/+1
|
* Add Client.GetInput fieldAdnan Maolood2020-10-271-20/+2
|
* Restrict client certificates to certain pathsAdnan Maolood2020-10-271-6/+10
|
* client: Follow redirectsAdnan Maolood2020-10-271-30/+19
|
* Add (*Client).Get functionAdnan Maolood2020-10-271-13/+2
|
* Make (*Response).Body an io.ReadCloserAdnan Maolood2020-10-271-1/+7
|
* Fix examplesAdnan Maolood2020-10-271-1/+1
|
* Add NewRequestFromURL functionAdnan Maolood2020-10-271-6/+9
|
* Rename repository to go-geminiAdnan Maolood2020-10-241-1/+1
|
* Move certificate verification code to VerifyConnectionadnano2020-10-131-1/+1
|
* Rename (*KnownHosts).Load to LoadDefaultadnano2020-10-121-1/+1
|
* Update documentationadnano2020-10-121-0/+165