mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-13 11:15:08 +00:00
* qemud/qemud.c: fix qemu+tls handshake negotiation, patch by
Chris Lalancette Daniel
This commit is contained in:
parent
1d1748b63e
commit
1ca2bd7912
@ -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>
|
Mon Mar 2 20:24:00 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* python/.cvsignore: Ignore generated.stamp
|
* python/.cvsignore: Ignore generated.stamp
|
||||||
|
@ -1339,6 +1339,8 @@ static int qemudDispatchServer(struct qemud_server *server, struct qemud_socket
|
|||||||
/* Begin the TLS handshake. */
|
/* Begin the TLS handshake. */
|
||||||
ret = gnutls_handshake (client->tlssession);
|
ret = gnutls_handshake (client->tlssession);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
client->handshake = 0;
|
||||||
|
|
||||||
/* Unlikely, but ... Next step is to check the certificate. */
|
/* Unlikely, but ... Next step is to check the certificate. */
|
||||||
if (remoteCheckAccess (client) == -1)
|
if (remoteCheckAccess (client) == -1)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
@ -1930,6 +1932,8 @@ qemudDispatchClientHandshake(struct qemud_server *server,
|
|||||||
/* Continue the handshake. */
|
/* Continue the handshake. */
|
||||||
ret = gnutls_handshake (client->tlssession);
|
ret = gnutls_handshake (client->tlssession);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
client->handshake = 0;
|
||||||
|
|
||||||
/* Finished. Next step is to check the certificate. */
|
/* Finished. Next step is to check the certificate. */
|
||||||
if (remoteCheckAccess (client) == -1)
|
if (remoteCheckAccess (client) == -1)
|
||||||
qemudDispatchClientFailure(client);
|
qemudDispatchClientFailure(client);
|
||||||
|
Loading…
Reference in New Issue
Block a user