mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
fix TLS error with virNetServerClientCreateIdentity
Compilation error when WITH_GNUTLS is 0, introduced in commit d5e83ad
.
This commit is contained in:
parent
c9759a7b63
commit
4755e863d1
@ -687,6 +687,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if WITH_GNUTLS
|
||||||
if (client->tls) {
|
if (client->tls) {
|
||||||
const char *identity = virNetTLSSessionGetX509DName(client->tls);
|
const char *identity = virNetTLSSessionGetX509DName(client->tls);
|
||||||
if (identity &&
|
if (identity &&
|
||||||
@ -695,6 +696,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (client->sock &&
|
if (client->sock &&
|
||||||
virNetSocketGetSecurityContext(client->sock, &seccontext) < 0)
|
virNetSocketGetSecurityContext(client->sock, &seccontext) < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user