From 9cd6f35e9d4873946060e79cb50643bae8ba8e2c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 27 May 2019 11:31:47 -0600 Subject: Separate out certificate selection --- modules/caddytls/tls.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/caddytls/tls.go') diff --git a/modules/caddytls/tls.go b/modules/caddytls/tls.go index 174d3e4..29ca88e 100644 --- a/modules/caddytls/tls.go +++ b/modules/caddytls/tls.go @@ -318,10 +318,10 @@ var supportedProtocols = map[string]uint16{ } // publicKeyAlgorithms is the map of supported public key algorithms. -var publicKeyAlgorithms = map[string]pkAlgorithm{ - "rsa": pkAlgorithm(x509.RSA), - "dsa": pkAlgorithm(x509.DSA), - "ecdsa": pkAlgorithm(x509.ECDSA), +var publicKeyAlgorithms = map[string]x509.PublicKeyAlgorithm{ + "rsa": x509.RSA, + "dsa": x509.DSA, + "ecdsa": x509.ECDSA, } const automateKey = "automate" -- cgit v1.2.3