mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
The PublicKey() method is an addition in Go 1.4
This commit is contained in:
parent
c42f1b53ab
commit
9e210d705d
@ -44,7 +44,7 @@ func GenerateKeys() (privKey []byte, pubKey []byte, err error) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Marshal the public key
|
// Marshal the public key
|
||||||
bs, err = x509.MarshalPKIXPublicKey(key.Public())
|
bs, err = x509.MarshalPKIXPublicKey(&key.PublicKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user