mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +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
|
||||
|
||||
#if WITH_GNUTLS
|
||||
if (client->tls) {
|
||||
const char *identity = virNetTLSSessionGetX509DName(client->tls);
|
||||
if (identity &&
|
||||
@ -695,6 +696,7 @@ virNetServerClientCreateIdentity(virNetServerClientPtr client)
|
||||
goto cleanup;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (client->sock &&
|
||||
virNetSocketGetSecurityContext(client->sock, &seccontext) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user