Apparently LibreSSL doesn't implement SSL_has_pending(), even for
newer versions.
Co-authored-by: Richard Russon <rich@flatcap.org>
#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. */