aboutsummaryrefslogtreecommitdiff
path: root/cert.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-28 00:41:00 -0400
committeradnano <[email protected]>2020-09-28 00:41:00 -0400
commit956a2bad524f8223de4582ac3033b65929ca50c3 (patch)
tree90810be4fac49b4e105c8b5d17c705a3552b293f /cert.go
parentMake the default client generate certificates (diff)
downloadgo-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.tar.xz
go-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.zip
Remove NewCertificateStore function
Diffstat (limited to 'cert.go')
-rw-r--r--cert.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/cert.go b/cert.go
index 90bb514..44276da 100644
--- a/cert.go
+++ b/cert.go
@@ -17,11 +17,6 @@ import (
// CertificateStore maps hostnames to certificates.
type CertificateStore map[string]*tls.Certificate
-// NewCertificateStore creates and returns a new certificate store.
-func NewCertificateStore() CertificateStore {
- return map[string]*tls.Certificate{}
-}
-
// NewCertificate creates and returns a new parsed certificate.
func NewCertificate(host string, duration time.Duration) (tls.Certificate, error) {
crt, key, err := NewRawCertificate(host, duration)