aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-10-31 23:05:31 -0400
committerAdnan Maolood <[email protected]>2020-10-31 23:05:31 -0400
commit79b3b22e6922539c34796785754231e429984dac (patch)
tree7c3c7b9f9844b6e8003c0bdcfb07968a0e43cfa4 /doc.go
parentGuarantee that (*Response).Body is non-nil (diff)
downloadgo-gemini-79b3b22e6922539c34796785754231e429984dac.tar.xz
go-gemini-79b3b22e6922539c34796785754231e429984dac.zip
Update documentation
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc.go b/doc.go
index 76306d0..0fae695 100644
--- a/doc.go
+++ b/doc.go
@@ -37,8 +37,8 @@ Clients can load their own list of known hosts:
Clients can control when to trust certificates with TrustCertificate:
- client.TrustCertificate = func(hostname string, cert *x509.Certificate, knownHosts *gemini.KnownHosts) error {
- return knownHosts.Lookup(hostname, cert)
+ client.TrustCertificate = func(hostname string, cert *x509.Certificate) gemini.Trust {
+ return gemini.TrustOnce
}
Clients can create client certificates upon the request of a server:
@@ -53,7 +53,7 @@ Server is a Gemini server.
var server gemini.Server
-Servers must be configured with certificates:
+Servers should be configured with certificates:
err := server.Certificates.Load("/var/lib/gemini/certs")
if err != nil {