diff options
| author | adnano <[email protected]> | 2020-09-28 00:41:00 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-28 00:41:00 -0400 |
| commit | 956a2bad524f8223de4582ac3033b65929ca50c3 (patch) | |
| tree | 90810be4fac49b4e105c8b5d17c705a3552b293f /cert.go | |
| parent | Make the default client generate certificates (diff) | |
| download | go-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.tar.xz go-gemini-956a2bad524f8223de4582ac3033b65929ca50c3.zip | |
Remove NewCertificateStore function
Diffstat (limited to 'cert.go')
| -rw-r--r-- | cert.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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) |