[exim-cvs] GnuTLS: fix build on earlier library version.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] GnuTLS: fix build on earlier library version.
Gitweb: https://git.exim.org/exim.git/commitdiff/77b58ab70be06dec805fbf1f638eb86dda0287ff
Commit:     77b58ab70be06dec805fbf1f638eb86dda0287ff
Parent:     e248dbece62f036f9845de1d15876b946eead0d0
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Sun Oct 4 11:43:04 2020 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Sun Oct 4 11:44:12 2020 +0100


    GnuTLS: fix build on earlier library version.


    Broken-by: 6a9cf7f890
---
 src/src/tls-gnu.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index f5c6a8b..71115ed 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -1763,9 +1763,11 @@ else
state->exp_tls_certificate = US state->tls_certificate;
state->exp_tls_privatekey = US state->tls_privatekey;

+#ifdef SUPPORT_GNUTLS_EXT_RAW_PARSE
   if (state->lib_state.ocsp_hook)
      gnutls_handshake_set_hook_function(state->session,
        GNUTLS_HANDSHAKE_ANY, GNUTLS_HOOK_POST, tls_server_hook_cb);
+#endif
   }



@@ -1871,12 +1873,11 @@ client-side params. */

 if (!state->host)
   {
-/*XXX DDD done-bit */
   if (!dh_server_params)
     if ((rc = init_server_dh(errstr)) != OK) return rc;


/* Unnecessary & discouraged with 3.6.0 or later */
- gnutls_certificate_set_dh_params(state->.lib_statex509_cred, dh_server_params);
+ gnutls_certificate_set_dh_params(state->lib_state.x509_cred, dh_server_params);
}
#endif