secio: at last! bugfix found.

This commit is contained in:
Juan Batiz-Benet 2014-12-19 19:36:01 -08:00
parent 16497ed7a3
commit fbee577d3b

View File

@ -205,7 +205,7 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
log.Debugf("2.0.1 exchange recv: %v", selectionInBytes)
// u.POut("Remote Peer Identified as %s\n", s.remote)
sigOK, err := s.local.permanentPubKey.Verify(selectionInBytes, exchangeIn.GetSignature())
sigOK, err := s.remote.permanentPubKey.Verify(selectionInBytes, exchangeIn.GetSignature())
if err != nil {
log.Error("2.1 Verify: failed: %s", err)
return err