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

586 Commits

Author SHA1 Message Date
adnano
b5a00b3257 certificate.Store: Clean scope path in Load
Clean the scope path so that trimming the path from the scope works for
relative paths.
2021-03-05 10:51:55 -05:00
adnano
8811080005 Revert "certificate: Remove Subject from CreateOptions"
This reverts commit f3481c3ff8815475a693c718e7de8dc7b90634b8.
2021-03-04 20:04:46 -05:00
adnano
12b94a4755 Revert "certificate.Store: Allow using '*' in DNSNames"
This reverts commit 24db7b47778721c613807ecaf610e87ae2ec1ec7.
2021-03-04 19:26:13 -05:00
adnano
f1cf35587c certificate.Store: Bump default duration to 250 years 2021-03-04 16:55:09 -05:00
adnano
24db7b4777 certificate.Store: Allow using '*' in DNSNames
This isn't exactly a valid DNSName, but it reduces the number of
certificates that need to be created. Clients should either accept it or
skip checking DNSNames.
2021-03-04 16:40:25 -05:00
adnano
f3481c3ff8 certificate: Remove Subject from CreateOptions 2021-03-04 16:27:16 -05:00
adnano
dd0bc6b681 certificate: Fix deadlock in Store.Get 2021-03-04 16:20:57 -05:00
adnano
6af459aaa0 certificate.Store: Fix hostname registration check 2021-03-04 16:12:36 -05:00
adnano
aa438fedbf tofu: Remove expiration timestamp from known hosts 2021-03-04 15:37:02 -05:00
adnano
ffc9f3b921 client: Remove hostname verification check 2021-03-04 14:36:31 -05:00
adnano
96672e89d4 client: Ignore certificate expiration time 2021-03-04 14:35:51 -05:00
adnano
a2cae039e5 Rename vendor.go to verify_hostname.go 2021-02-28 23:21:10 -05:00
adnano
f574b1d821 Make Response implement io.WriterTo 2021-02-28 22:21:54 -05:00
adnano
d3b69f7cdb Request.WriteTo: return int64 2021-02-28 22:20:59 -05:00
adnano
c05a974c36 Make Request implement io.WriterTo 2021-02-28 22:16:38 -05:00
adnano
429dd79ae4 Add message argument to TimeoutHandler 2021-02-28 22:07:24 -05:00
adnano
f2adf125a1 Mention that Request methods don't work for clients 2021-02-28 21:59:19 -05:00
adnano
3a574de7cc Remove Request.RemoteAddr helper method 2021-02-28 21:52:41 -05:00
adnano
c5dd17f286 Replace uses of ioutil with io 2021-02-28 21:38:36 -05:00
adnano
a11fe5f12d Require Go 1.16 2021-02-28 21:38:17 -05:00
adnano
469cf1dd86 Reintroduce Response.Write method 2021-02-28 20:50:18 -05:00
adnano
b4a4ece459 certificate.Store: Check parent scopes in Lookup 2021-02-28 20:23:32 -05:00
adnano
8cc1c4138f certificate.Store: Support client certificates 2021-02-28 19:29:25 -05:00
adnano
ac4c897007 examples/server: Clean up LoggingMiddleware 2021-02-27 14:53:37 -05:00
adnano
30984d0e87 response: Add tests for maximum-length META 2021-02-27 14:08:31 -05:00
adnano
839418a2b7 request: Add RemoteAddr helper function 2021-02-27 14:03:33 -05:00
adnano
a30938e3bd request: Add ServerName helper method 2021-02-27 14:02:30 -05:00
adnano
bda3436707 request: Cache calls to TLS 2021-02-27 13:59:45 -05:00
adnano
00b25fcb44 server: Disallow ServeConn usage after Shutdown 2021-02-24 19:25:52 -05:00
adnano
13d4ba5708 Update examples/client.go 2021-02-24 19:21:31 -05:00
adnano
3255b024e9 Remove ResponseWriter.Close method 2021-02-24 19:00:09 -05:00
adnano
c5bd598947 response: Revert to using fields instead of methods 2021-02-24 18:50:40 -05:00
adnano
a27dfdc3a9 examples/client: Fix display of response status 2021-02-24 16:16:42 -05:00
adnano
6d8f1dc95f Revert "Replace uses of ioutil with io"
This reverts commit 0aa995c78c6afca5707d776c6175833fb2fca93c.
2021-02-24 14:45:57 -05:00
adnano
7495060134 Don't require Go 1.16 2021-02-24 14:29:29 -05:00
adnano
d9382ef950 Add missing import 2021-02-24 14:28:47 -05:00
adnano
76e42344ae Move mimetype registration to gemini.go 2021-02-24 14:27:49 -05:00
adnano
0aa995c78c Replace uses of ioutil with io 2021-02-24 11:11:10 -05:00
adnano
158e5002af fs: Remove build constraint 2021-02-24 11:01:02 -05:00
adnano
85fea6646a Add NewResponse function 2021-02-24 10:48:17 -05:00
adnano
f5c5b362a7 examples/server: Cancel context 2021-02-24 10:27:28 -05:00
adnano
f5e5f71474 examples/server: Add logging middleware 2021-02-24 10:25:08 -05:00
adnano
249b13c191 ResponseWriter: Remove unexported method 2021-02-24 10:01:46 -05:00
adnano
77c862c821 client: Fix copying of request 2021-02-24 09:48:23 -05:00
adnano
1dc3a2009d examples/client: Use Response methods 2021-02-24 09:22:25 -05:00
adnano
f86a79ff20 examples/auth: Use Request.TLS method 2021-02-24 09:22:01 -05:00
adnano
75a8109ea7 fs: Fix Go build constraint comment 2021-02-24 09:00:28 -05:00
adnano
55e921883d response: Move to methods 2021-02-24 08:43:57 -05:00
adnano
94b185b049 server: Fix comment 2021-02-24 08:38:08 -05:00
adnano
b3a84facce TimeoutHandler: Mention returned error 2021-02-24 08:37:52 -05:00