mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix TLS test suites with gnutls 3.6.0
With gnutls 3.6.0, SHA1 is no longer accepted for certificate signatures. We must usw SHA256 instead. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
ef3f92200f
commit
c666661bbc
@ -384,7 +384,7 @@ testTLSGenerateCert(struct testTLSCertReq *req,
|
|||||||
* If no 'ca' is set then we are self signing
|
* If no 'ca' is set then we are self signing
|
||||||
* the cert. This is done for the root CA certs
|
* the cert. This is done for the root CA certs
|
||||||
*/
|
*/
|
||||||
if ((err = gnutls_x509_crt_sign(crt, ca ? ca : crt, privkey)) < 0) {
|
if ((err = gnutls_x509_crt_sign2(crt, ca ? ca : crt, privkey, GNUTLS_DIG_SHA256, 0)) < 0) {
|
||||||
VIR_WARN("Failed to sign certificate %s", gnutls_strerror(err));
|
VIR_WARN("Failed to sign certificate %s", gnutls_strerror(err));
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user