1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 21:02:28 +01:00
Commit Graph

136 Commits

Author SHA1 Message Date
adnano
304e543637 Check certificate notBefore and notAfter times 2020-09-27 21:37:10 -04:00
adnano
a645b03db4 Move package documentation comment 2020-09-27 21:19:34 -04:00
adnano
ac2bf90699 Rename NewProxyRequest to NewRequestTo 2020-09-27 20:37:16 -04:00
adnano
14e569bf92 Change package name to gmi 2020-09-27 20:20:59 -04:00
adnano
c548e8baa8 Reject invalid status codes 2020-09-27 19:56:33 -04:00
adnano
cafc19aed7 Polish example client 2020-09-27 19:45:48 -04:00
adnano
886e3ba8bb Add client authorization example 2020-09-27 17:39:44 -04:00
adnano
4e16af9b26 Make TrustCertificate accept hostname instead of request 2020-09-27 16:10:36 -04:00
adnano
ef802cacca Temporarily allow common names in certificates 2020-09-27 15:57:55 -04:00
adnano
f19d3b09cd Don't store wildcards in the known hosts file 2020-09-27 15:03:46 -04:00
adnano
1640891c91 Remove port from host when verifying hostnames 2020-09-27 14:25:28 -04:00
adnano
d7717577ea Add function to write known hosts to io.Writer 2020-09-27 14:18:30 -04:00
adnano
0a336f84e2 Implement certificate creation 2020-09-27 13:50:48 -04:00
adnano
749b765aaa Add preliminary CertificateStore API 2020-09-26 15:14:34 -04:00
adnano
a76535c921 Remove (*KnownHosts).Has function 2020-09-26 13:29:29 -04:00
adnano
6a5a7c40c5 Differentiate between unknown and untrusted certificates 2020-09-26 13:27:03 -04:00
adnano
886a92e54a Specify minimum version of TLS 1.2 2020-09-26 00:31:16 -04:00
adnano
47a6ce56f6 Fix misleading comment 2020-09-25 23:29:26 -04:00
adnano
5dae633597 Distinguish client errors from server errors 2020-09-25 23:23:24 -04:00
adnano
578746550e Refactor TOFU 2020-09-25 23:18:14 -04:00
adnano
134d0277f5 Implement basic TOFU 2020-09-25 21:43:13 -04:00
adnano
f994f3dbd0 Add method to check if hostname is found in KnownHosts 2020-09-25 20:22:48 -04:00
adnano
d11091f37d Implement configurable Client 2020-09-25 19:53:50 -04:00
adnano
d84cbcaf49 Reorganize 2020-09-25 19:09:49 -04:00
adnano
10139736e6 Rename gemini.go to client.go 2020-09-25 19:07:40 -04:00
adnano
fe4c98606f Refactor 2020-09-24 00:30:21 -04:00
adnano
d16253666e Enforce valid URLs 2020-09-21 22:21:51 -04:00
adnano
b81f6d44d4 Add package declaration comment 2020-09-21 22:09:50 -04:00
adnano
480e793d3f Refactor client requests and server responses 2020-09-21 21:31:09 -04:00
adnano
4b96665150 Provide Handler with client certificate information 2020-09-21 19:17:10 -04:00
adnano
51e1df0737 Update Client documentation 2020-09-21 18:30:55 -04:00
adnano
6884281d86 Add support for client-side certificates 2020-09-21 18:21:42 -04:00
adnano
0864b16e46 Use bufio.Reader in (*Client).Do 2020-09-21 17:58:36 -04:00
adnano
41eaa13ce9 Update documentation 2020-09-21 17:36:09 -04:00
adnano
23e24bbfc5 Add examples 2020-09-21 17:23:51 -04:00
adnano
257b807675 Initial commit 2020-09-21 15:49:09 -04:00