1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

S2S-TLS/GnuTLS: Update SSL code for GnuTLS certificate reloading

Without this, the S2S-TLS-Patch not even compiles with GnuTLS because
of the "new" GnuTLS certificate reload support implemented in commit
eead4a63 ("x509_cred_slot").
This commit is contained in:
Alexander Barton 2024-01-05 22:23:53 +01:00
parent c8589e9890
commit 0e176b5570

View File

@ -468,6 +468,9 @@ ConnSSL_SetVerifyProperties_gnutls(void)
if (!Conf_SSLOptions.CAFile)
return true;
x509_cred_slot *slot = array_get(&x509_creds, sizeof(x509_cred_slot), x509_cred_idx);
gnutls_certificate_credentials_t x509_cred = slot->x509_cred;
err = gnutls_certificate_set_x509_trust_file(x509_cred,
Conf_SSLOptions.CAFile,
GNUTLS_X509_FMT_PEM);