|
@ -135,7 +135,7 @@ func MakeSecretConnection(conn io.ReadWriteCloser, locPrivKey crypto.PrivKey) (* |
|
|
remPubKey, remSignature := authSigMsg.Key, authSigMsg.Sig |
|
|
remPubKey, remSignature := authSigMsg.Key, authSigMsg.Sig |
|
|
|
|
|
|
|
|
if remPubKey == nil { |
|
|
if remPubKey == nil { |
|
|
return nil, errors.New("Peer sent a nil public key") |
|
|
|
|
|
|
|
|
return nil, errors.New("peer sent a nil public key") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if !remPubKey.VerifyBytes(challenge[:], remSignature) { |
|
|
if !remPubKey.VerifyBytes(challenge[:], remSignature) { |
|
|