Skip to content

Commit 4939de4

Browse files
committed
Support go1.4
1 parent d400b8f commit 4939de4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: go
22

33
go:
4-
- 1.3
4+
- 1.4
55
- 1.7
66
- 1.8
77

https/acme/crypto.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ func getKeyAuthorization(token string, key interface{}) (string, error) {
131131
var publicKey crypto.PublicKey
132132
switch k := key.(type) {
133133
case *ecdsa.PrivateKey:
134-
publicKey = &k.PublicKey
134+
publicKey = k.Public()
135135
case *rsa.PrivateKey:
136-
publicKey = &k.PublicKey
136+
publicKey = k.Public()
137137
}
138138

139139
// Generate the Key Authorization for the challenge

https/letsencrypt/lets.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (m *Manager) CacheFile(name string) error {
336336
}
337337
}
338338
go func() {
339-
for _ = range m.Watch() {
339+
for range m.Watch() {
340340
err := ioutil.WriteFile(name, []byte(m.Marshal()), 0600)
341341
if err != nil {
342342
log.Printf("writing letsencrypt cache: %v", err)

0 commit comments

Comments
 (0)