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

Chris Lalancette
Daniel
This commit is contained in:
Daniel Veillard 2009-03-03 08:25:50 +00:00
parent 1d1748b63e
commit 1ca2bd7912
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);