mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
util: storage: remove virStorageSource->tlsVerify
Disks are client-only so we don't need to have this variable. We also always pass false for 'isListen' to qemuBuildTLSx509BackendProps for all disk-related code-paths so the 'tlsVerify' is ignored anyways. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f18771d41c
commit
0b9451f9d6
@ -774,7 +774,7 @@ qemuBuildDiskSrcTLSx509CommandLine(virCommandPtr cmd,
|
||||
return 0;
|
||||
|
||||
return qemuBuildTLSx509CommandLine(cmd, src->tlsCertdir,
|
||||
false, src->tlsVerify,
|
||||
false, true,
|
||||
NULL, src->tlsAlias, qemuCaps);
|
||||
}
|
||||
|
||||
|
@ -9946,8 +9946,6 @@ qemuProcessPrepareStorageSourceTLSVxhs(virStorageSourcePtr src,
|
||||
if (src->haveTLS == VIR_TRISTATE_BOOL_YES) {
|
||||
if (VIR_STRDUP(src->tlsCertdir, cfg->vxhsTLSx509certdir) < 0)
|
||||
return -1;
|
||||
|
||||
src->tlsVerify = true;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -164,8 +164,7 @@ qemuDomainAddDiskSrcTLSObject(virQEMUDriverPtr driver,
|
||||
|
||||
if (qemuDomainGetTLSObjects(priv->qemuCaps, NULL,
|
||||
src->tlsCertdir,
|
||||
false,
|
||||
src->tlsVerify,
|
||||
false, true,
|
||||
src->tlsAlias,
|
||||
&tlsProps, NULL) < 0)
|
||||
goto cleanup;
|
||||
|
@ -2171,7 +2171,6 @@ virStorageSourceCopy(const virStorageSource *src,
|
||||
ret->shared = src->shared;
|
||||
ret->haveTLS = src->haveTLS;
|
||||
ret->tlsFromConfig = src->tlsFromConfig;
|
||||
ret->tlsVerify = src->tlsVerify;
|
||||
ret->detected = src->detected;
|
||||
ret->debugLevel = src->debugLevel;
|
||||
ret->debug = src->debug;
|
||||
|
@ -310,7 +310,6 @@ struct _virStorageSource {
|
||||
* certificate directory with listen and verify bools. */
|
||||
char *tlsAlias;
|
||||
char *tlsCertdir;
|
||||
bool tlsVerify;
|
||||
|
||||
bool detected; /* true if this entry was not provided by the user */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user