git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e248dbe
)
GnuTLS: fix build on earlier library version.
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 4 Oct 2020 10:43:04 +0000
(11:43 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 4 Oct 2020 10:44:12 +0000
(11:44 +0100)
Broken-by: 6a9cf7f890
src/src/tls-gnu.c
patch
|
blob
|
history
diff --git
a/src/src/tls-gnu.c
b/src/src/tls-gnu.c
index f5c6a8bd67d6cf6c301c3f53acc2d26a454e9f80..71115edf58bbd8290972b1a14d63598b9ffb7a05 100644
(file)
--- 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;
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);
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)
{
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 */
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_state
x509_cred, dh_server_params);
+ gnutls_certificate_set_dh_params(state->
lib_state.
x509_cred, dh_server_params);
}
#endif
}
#endif