aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-12-17 16:46:16 -0500
committerAdnan Maolood <[email protected]>2020-12-17 16:46:16 -0500
commit846fa2ac416ce63ee3c9ded213494f006e2e1842 (patch)
treeb467c0f3047aa1f78cb0885dc2bb56af42dd2371 /examples
parentRevert to using hexadecimal to encode fingerprints (diff)
downloadgo-gemini-846fa2ac416ce63ee3c9ded213494f006e2e1842.tar.xz
go-gemini-846fa2ac416ce63ee3c9ded213494f006e2e1842.zip
client: Add GetCertificate callback
Diffstat (limited to 'examples')
-rw-r--r--examples/client.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/client.go b/examples/client.go
index 176c8f8..818f29c 100644
--- a/examples/client.go
+++ b/examples/client.go
@@ -4,7 +4,6 @@ package main
import (
"bufio"
- "crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
@@ -47,12 +46,6 @@ func init() {
return gemini.TrustNone
}
}
- client.CreateCertificate = func(hostname, path string) (tls.Certificate, error) {
- fmt.Println("Generating client certificate for", hostname, path)
- return gemini.CreateCertificate(gemini.CertificateOptions{
- Duration: time.Hour,
- })
- }
client.GetInput = func(prompt string, sensitive bool) (string, bool) {
fmt.Printf("%s: ", prompt)
scanner.Scan()