mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +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:
parent
c8589e9890
commit
0e176b5570
@ -468,6 +468,9 @@ ConnSSL_SetVerifyProperties_gnutls(void)
|
|||||||
if (!Conf_SSLOptions.CAFile)
|
if (!Conf_SSLOptions.CAFile)
|
||||||
return true;
|
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,
|
err = gnutls_certificate_set_x509_trust_file(x509_cred,
|
||||||
Conf_SSLOptions.CAFile,
|
Conf_SSLOptions.CAFile,
|
||||||
GNUTLS_X509_FMT_PEM);
|
GNUTLS_X509_FMT_PEM);
|
||||||
|
Loading…
Reference in New Issue
Block a user