change string repr of signature algorithms to constants

This commit is contained in:
Chelsea Holland Komlo
2018-08-10 12:20:04 -04:00
parent 4fe562ca8c
commit 4f1d40926e

View File

@@ -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