The PublicKey() method is an addition in Go 1.4

This commit is contained in:
Jakob Borg 2015-10-27 16:03:14 +01:00
parent c42f1b53ab
commit 9e210d705d

View File

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