mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
esx_driver: Simplify IsEncrypted and IsSecure
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
This commit is contained in:
parent
4539301bc8
commit
15498a76e4
@ -4000,11 +4000,7 @@ esxConnectIsEncrypted(virConnectPtr conn)
|
||||
{
|
||||
esxPrivate *priv = conn->privateData;
|
||||
|
||||
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
return STRCASEEQ(priv->parsedUri->transport, "https");
|
||||
}
|
||||
|
||||
|
||||
@ -4014,11 +4010,7 @@ esxConnectIsSecure(virConnectPtr conn)
|
||||
{
|
||||
esxPrivate *priv = conn->privateData;
|
||||
|
||||
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
return STRCASEEQ(priv->parsedUri->transport, "https");
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user