| 123456789101112131415161718192021222324252627 |
- From 8676c743246aaebe6d45f0978812c154ecfa25dd Mon Sep 17 00:00:00 2001
- From: Alexander Barton <alex@barton.de>
- Date: Fri, 5 Jan 2024 22:23:53 +0100
- Subject: [PATCH 12/20] 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").
- (cherry picked from commit 0e176b557037b583f408229b518646804b33d745)
- ---
- src/ngircd/conn-ssl.c | 3 +++
- 1 file changed, 3 insertions(+)
- --- a/src/ngircd/conn-ssl.c
- +++ b/src/ngircd/conn-ssl.c
- @@ -468,6 +468,9 @@
- 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);
|