From e183f9cd23380a81071c32f64c91e60f46a7d8cb Mon Sep 17 00:00:00 2001 From: tjpcc Date: Wed, 11 Jan 2023 10:36:56 -0700 Subject: lots more documentation comments --- gemini/tls.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gemini/tls.go') diff --git a/gemini/tls.go b/gemini/tls.go index 3cdf93b..5b35fb6 100644 --- a/gemini/tls.go +++ b/gemini/tls.go @@ -2,6 +2,9 @@ package gemini import "crypto/tls" +// FileTLS builds a TLS configuration from paths to a certificate and key file. +// +// It sets parameters on the configuration to make it suitable for use with gemini. func FileTLS(certfile string, keyfile string) (*tls.Config, error) { cert, err := tls.LoadX509KeyPair(certfile, keyfile) if err != nil { -- cgit v1.2.3