Skip to content

Commit d162186

Browse files
committed
acme/autocert: fix build in Go 1.9
Updates golang/go#22066 Change-Id: I7eb6a60deb6680003245815760e2ce6a8f7d8b15 Reviewed-on: https://go-review.googlesource.com/116496 Run-TryBot: Filippo Valsorda <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 78e7928 commit d162186

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

acme/autocert/autocert.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,9 @@ func supportsECDSA(hello *tls.ClientHelloInfo) bool {
276276
ecdsaOK := false
277277
schemeLoop:
278278
for _, scheme := range hello.SignatureSchemes {
279+
var tlsECDSAWithSHA1 tls.SignatureScheme = 0x0203 // constant added in Go 1.10
279280
switch scheme {
280-
case tls.ECDSAWithSHA1, tls.ECDSAWithP256AndSHA256,
281+
case tlsECDSAWithSHA1, tls.ECDSAWithP256AndSHA256,
281282
tls.ECDSAWithP384AndSHA384, tls.ECDSAWithP521AndSHA512:
282283
ecdsaOK = true
283284
break schemeLoop

0 commit comments

Comments
 (0)