From 7ababfc9090b901d31248a9312cb779e6855c47d Mon Sep 17 00:00:00 2001 From: Eldin Hadzic Date: Tue, 5 Apr 2016 13:37:39 +0000 Subject: [PATCH] Rename EC256,EC384 to P256,P384 --- caddy/https/setup.go | 4 ++-- caddy/https/setup_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/caddy/https/setup.go b/caddy/https/setup.go index 03d186a7..ac275466 100644 --- a/caddy/https/setup.go +++ b/caddy/https/setup.go @@ -257,8 +257,8 @@ func setDefaultTLSParams(c *server.Config) { // Map of supported key types var supportedKeyTypes = map[string]acme.KeyType{ - "EC384": acme.EC384, - "EC256": acme.EC256, + "P384": acme.EC384, + "P256": acme.EC256, "RSA8192": acme.RSA8192, "RSA4096": acme.RSA4096, "RSA2048": acme.RSA2048, diff --git a/caddy/https/setup_test.go b/caddy/https/setup_test.go index f1a07474..378a24f8 100644 --- a/caddy/https/setup_test.go +++ b/caddy/https/setup_test.go @@ -221,7 +221,7 @@ func TestSetupParseWithClientAuth(t *testing.T) { func TestSetupParseWithKeyType(t *testing.T) { params := `tls { - key_type ec384 + key_type p384 }` c := setup.NewTestController(params)