1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-19 10:22:01 +02:00
Commit Graph

559 Commits

Author SHA1 Message Date
adnano
4ee8740ee3 response: Don't use bufReadCloser 2021-03-20 13:41:53 -04:00
adnano
21845ca419 fs: Fix empty media type for directory index pages 2021-03-20 13:33:15 -04:00
adnano
dfe8446d49 client: Only get cert if TrustCertificate is set 2021-03-20 12:54:41 -04:00
adnano
03767f7a68 client: Close connection on error 2021-03-20 12:49:27 -04:00
adnano
ca2680a958 Tweak request and response parsing 2021-03-20 12:27:20 -04:00
adnano
b3c0a5040d response: Treat empty meta as invalid 2021-03-20 12:07:24 -04:00
adnano
be3417c785 Remove unused field 2021-03-20 12:05:21 -04:00
adnano
57968c0fce Remove charset=utf-8 from default media type 2021-03-20 12:04:42 -04:00
adnano
8066279549 Rename ServeMux to Mux 2021-03-15 15:44:35 -04:00
adnano
77a556d61e status: Reintroduce StatusSensitiveInput 2021-03-15 15:19:43 -04:00
adnano
ec3557df46 certificate.Store: Call os.MkdirAll on Load 2021-03-09 08:59:28 -05:00
adnano
3bd639063a tofu: Use stricter file permissions 2021-03-09 08:58:36 -05:00
Noah Kleiner
14346de781 tofu: Create path if not exists
This commit is a follow-up to 90b1e98d which does not take into account
the case that the parent directory of the known_hosts file does not already exist.
2021-03-09 08:50:42 -05:00
adnano
7101402517 Remove StatusSensitiveInput 2021-03-08 14:08:45 -05:00
adnano
8c453c7531 examples/client: Fix certificate trust check 2021-03-08 14:07:18 -05:00
adnano
ec52faab6b tofu: Fix known host unmarshaling 2021-03-06 15:49:11 -05:00
adnano
44921d55ad tofu: Use base64-encoded sha256 fingerprints 2021-03-06 15:24:15 -05:00
adnano
8ec13e2c03 tofu: Fix format in error message 2021-03-06 15:13:06 -05:00
adnano
90b1e98d61 tofu: Automatically create file in KnownHosts.Load 2021-03-06 15:11:30 -05:00
adnano
16e4e9ad7d certificate.Store: Don't call os.MkdirAll 2021-03-06 13:11:11 -05:00
adnano
162928e85f certificate.Store: Don't check parent scopes in Lookup
Limit the scopes of client certificates to hostnames only instead of
hostnames and paths.
2021-03-06 12:59:33 -05:00
adnano
159d88e894 certificate.Store: Make 100 years the default duration 2021-03-05 23:29:56 -05:00
adnano
747cee74c3 Move LoggingMiddleware out of examples/server.go 2021-03-05 11:35:01 -05:00
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 f3481c3ff8.
2021-03-04 20:04:46 -05:00
adnano
12b94a4755 Revert "certificate.Store: Allow using '*' in DNSNames"
This reverts commit 24db7b4777.
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