diff options
| author | Adnan Maolood <[email protected]> | 2020-10-31 23:05:31 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-10-31 23:05:31 -0400 |
| commit | 79b3b22e6922539c34796785754231e429984dac (patch) | |
| tree | 7c3c7b9f9844b6e8003c0bdcfb07968a0e43cfa4 /doc.go | |
| parent | Guarantee that (*Response).Body is non-nil (diff) | |
| download | go-gemini-79b3b22e6922539c34796785754231e429984dac.tar.xz go-gemini-79b3b22e6922539c34796785754231e429984dac.zip | |
Update documentation
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 { |