]> Sergey Matveev's repositories - godlighty.git/blobdiff - handler.go
Simultaneous ECDSA and EdDSA support
[godlighty.git] / handler.go
index a8a9e31b03835e3fae3078e84f3399b328717b38..6da3989e222a8721946c413813a2e8106fd0589b 100644 (file)
@@ -119,7 +119,9 @@ func (h Handler) Handle(
                return
        }
 
-       if cfg.TLS != nil && len(cfg.TLS.ClientCAs) > 0 {
+       if (cfg.ECDSATLS != nil && len(cfg.ECDSATLS.ClientCAs) > 0) ||
+               (cfg.EdDSATLS != nil && len(cfg.EdDSATLS.ClientCAs) > 0) ||
+               (cfg.GOSTTLS != nil && len(cfg.GOSTTLS.ClientCAs) > 0) {
                if r.TLS == nil {
                        err = errors.New("TLS client authentication required")
                        printErr(http.StatusForbidden, err)