mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +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
|
||||
bs, err = x509.MarshalPKIXPublicKey(key.Public())
|
||||
bs, err = x509.MarshalPKIXPublicKey(&key.PublicKey)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user