Gitweb:
https://git.exim.org/exim.git/commitdiff/4312da48dab2e6510199a598ae15dbfe1787e3e2
Commit: 4312da48dab2e6510199a598ae15dbfe1787e3e2
Parent: a7a1ad1447470b5bcc415d2fbdd368d585204516
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Nov 29 10:01:52 2018 +0000
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Thu Nov 29 10:01:52 2018 +0000
GnuTLS: fix build with older libraries
Broken-by: 6aac3239b4
---
src/src/tls-gnu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/src/tls-gnu.c b/src/src/tls-gnu.c
index 25fe2f4..42d54a9 100644
--- a/src/src/tls-gnu.c
+++ b/src/src/tls-gnu.c
@@ -787,6 +787,9 @@ if ((rc = gnutls_x509_crt_init(&cert))) goto err;
where = US"generating pkey";
if ((rc = gnutls_x509_privkey_generate(pkey, GNUTLS_PK_RSA,
#ifdef SUPPORT_PARAM_TO_PK_BITS
+# ifndef GNUTLS_SEC_PARAM_MEDIUM
+# define GNUTLS_SEC_PARAM_MEDIUM GNUTLS_SEC_PARAM_HIGH
+# endif
gnutls_sec_param_to_pk_bits(GNUTLS_PK_RSA, GNUTLS_SEC_PARAM_MEDIUM),
#else
2048,