提交 1ca2bd79 编写于 作者: D Daniel Veillard

* qemud/qemud.c: fix qemu+tls handshake negotiation, patch by

  Chris Lalancette
Daniel
上级 1d1748b6
Tue Mar 3 09:24:13 CET 2009 Daniel Veillard <veillard@redhat.com>
* qemud/qemud.c: fix qemu+tls handshake negotiation, patch by
Chris Lalancette
Mon Mar 2 20:24:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* python/.cvsignore: Ignore generated.stamp
......
......@@ -1339,6 +1339,8 @@ static int qemudDispatchServer(struct qemud_server *server, struct qemud_socket
/* Begin the TLS handshake. */
ret = gnutls_handshake (client->tlssession);
if (ret == 0) {
client->handshake = 0;
/* Unlikely, but ... Next step is to check the certificate. */
if (remoteCheckAccess (client) == -1)
goto cleanup;
......@@ -1930,6 +1932,8 @@ qemudDispatchClientHandshake(struct qemud_server *server,
/* Continue the handshake. */
ret = gnutls_handshake (client->tlssession);
if (ret == 0) {
client->handshake = 0;
/* Finished. Next step is to check the certificate. */
if (remoteCheckAccess (client) == -1)
qemudDispatchClientFailure(client);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册