projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6010e70
)
Fix build with older GnuTLS
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 25 Apr 2019 18:13:31 +0000
(19:13 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 25 Apr 2019 18:13:31 +0000
(19:13 +0100)
src/src/tls-gnu.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/tls-gnu.c
b/src/src/tls-gnu.c
index abf2c25b8058f589f1d2366fcca6e178fe66669d..e08381344dd51e3967d5e7bf90b9378e016710a6 100644
(file)
--- a/
src/src/tls-gnu.c
+++ b/
src/src/tls-gnu.c
@@
-1516,7
+1516,11
@@
state->peerdn = NULL;
cipher = gnutls_cipher_get(state->session);
protocol = gnutls_protocol_get_version(state->session);
mac = gnutls_mac_get(state->session);
-kx = protocol < GNUTLS_TLS1_3 ? gnutls_kx_get(state->session) : 0;
+kx =
+#ifdef GNUTLS_TLS1_3
+ protocol >= GNUTLS_TLS1_3 ? 0 :
+#endif
+ gnutls_kx_get(state->session);
old_pool = store_pool;
{