@cryptotaxi247 / kubo / commits / 8d961fc03

secio: better handshake log msg

Juan Batiz-Benet committed Dec 12, 2014 at 01:43 UTC 8d961fc03bff05e81c6538ef006b7b292c626690
1 file changed +1 -1
crypto/secio/protocol.go
+1 -1
@@ -251,7 +251,7 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
251 return fmt.Errorf("Failed to read Finish nonce: %s", err)
252 }
253 if !bytes.Equal(nonceOut, nonceOut2) {
254 - return fmt.Errorf("Failed to read our encrypted nonce, go: %s", nonceOut2)
254 + return fmt.Errorf("Failed to read our encrypted nonce: %s != %s", nonceOut2, nonceOut)
255 }
256
257 // Whew! ok, that's all folks.