mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
remote: warn on low SSF
Prepare for deprecating old kerberos ciphers by warning users with a SSF lower than 112. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
1c06334608
commit
de7288ae97
@ -4186,6 +4186,11 @@ remoteAuthSASL(virConnectPtr conn, struct private_data *priv,
|
|||||||
_("negotiation SSF %d was not strong enough"), ssf);
|
_("negotiation SSF %d was not strong enough"), ssf);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
if (ssf < SSF_WARNING_LEVEL) {
|
||||||
|
VIR_WARN("negotiation SSF %d lower than %d will be deprecated. "
|
||||||
|
"Please upgrade your ciphers.",
|
||||||
|
ssf, SSF_WARNING_LEVEL);
|
||||||
|
}
|
||||||
priv->is_secure = 1;
|
priv->is_secure = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,3 +39,5 @@ unsigned long remoteVersion(void);
|
|||||||
#define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
|
#define LIBVIRT_CLIENTCERT LIBVIRT_PKI_DIR "/libvirt/clientcert.pem"
|
||||||
#define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"
|
#define LIBVIRT_SERVERKEY LIBVIRT_PKI_DIR "/libvirt/private/serverkey.pem"
|
||||||
#define LIBVIRT_SERVERCERT LIBVIRT_PKI_DIR "/libvirt/servercert.pem"
|
#define LIBVIRT_SERVERCERT LIBVIRT_PKI_DIR "/libvirt/servercert.pem"
|
||||||
|
|
||||||
|
#define SSF_WARNING_LEVEL 112
|
||||||
|
Loading…
x
Reference in New Issue
Block a user