From 4f1d40926e0bc1c0cbb09009cb33382b38678aa7 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Fri, 10 Aug 2018 12:20:04 -0400 Subject: [PATCH] change string repr of signature algorithms to constants --- helper/tlsutil/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/helper/tlsutil/config.go b/helper/tlsutil/config.go index ece665fe7..4aad22db5 100644 --- a/helper/tlsutil/config.go +++ b/helper/tlsutil/config.go @@ -46,8 +46,10 @@ var supportedTLSCiphers = map[string]uint16{ // algorithmStringRepr is the string representation of a signing algorithm type algorithmStringRepr string -var rsaStringRepr algorithmStringRepr = "RSA" -var ecdsaStringRepr algorithmStringRepr = "ECDSA" +const ( + rsaStringRepr algorithmStringRepr = "RSA" + ecdsaStringRepr algorithmStringRepr = "ECDSA" +) // supportedCipherSignatures is the supported cipher suites with their // corresponding signature algorithm