提交 8d961fc0 作者: Juan Batiz-Benet

secio: better handshake log msg

上级 5b142948
......@@ -251,7 +251,7 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
return fmt.Errorf("Failed to read Finish nonce: %s", err)
}
if !bytes.Equal(nonceOut, nonceOut2) {
return fmt.Errorf("Failed to read our encrypted nonce, go: %s", nonceOut2)
return fmt.Errorf("Failed to read our encrypted nonce: %s != %s", nonceOut2, nonceOut)
}
// Whew! ok, that's all folks.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论