]> granicus.if.org Git - neomutt/commitdiff
Fix LibreSSL build
authorKevin McCarthy <kevin@8t8.us>
Wed, 14 Aug 2019 04:03:51 +0000 (21:03 -0700)
committerRichard Russon <rich@flatcap.org>
Mon, 19 Aug 2019 22:03:24 +0000 (23:03 +0100)
Apparently LibreSSL doesn't implement SSL_has_pending(), even for
newer versions.

Co-authored-by: Richard Russon <rich@flatcap.org>
conn/ssl.c

index 1edf01dc052545f527d05a20cb213a7515ae7de8..c3ac2ffb8a68c0c3a9afbfc762be8567caaea56a 100644 (file)
@@ -86,6 +86,11 @@ const int dialog_row_len = 128;
 #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
+
 /* This is ugly, but as RAND_status came in on OpenSSL version 0.9.5
  * and the code has to support older versions too, this is seemed to
  * be cleaner way compared to having even uglier #ifdefs all around.  */