summaryrefslogtreecommitdiffstats
path: root/mutt_ssl.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-08-13 21:03:51 -0700
committerKevin McCarthy <kevin@8t8.us>2019-08-13 21:03:51 -0700
commit342b91cf174083bd1b24e11db322ca076cdf625d (patch)
treeb0913033d16aaf955f5eeec08a8d7c1f85d459a2 /mutt_ssl.c
parent536353c757080d9c02484b96e65b32862d5152d1 (diff)
Fix LibreSSL build.
Apparently LibreSSL doesn't implement SSL_has_pending(), even for newer versions.
Diffstat (limited to 'mutt_ssl.c')
-rw-r--r--mutt_ssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mutt_ssl.c b/mutt_ssl.c
index 3e9ef9ff..b48f319b 100644
--- a/mutt_ssl.c
+++ b/mutt_ssl.c
@@ -41,6 +41,11 @@
#define SSL_has_pending SSL_pending
#endif
+/* Unimplemented OpenSSL 1.1 api calls */
+#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070000fL)
+#define SSL_has_pending SSL_pending
+#endif
+
#undef _
#include <string.h>