Add helper handler functions

This commit is contained in:
adnano
2020-09-27 20:11:45 -04:00
parent 73e4ef0689
commit a4a8d49ca7
3 changed files with 31 additions and 3 deletions

View File

@@ -77,9 +77,8 @@ func sendRequest(req *gemini.Request) error {
case gemini.StatusClassClientCertificateRequired:
fmt.Println("Generating client certificate for", req.Hostname())
return nil // TODO: Generate and store client certificate
default:
return fmt.Errorf("Protocol error: Server sent an invalid response")
}
panic("unreachable")
}
type trust int