TLS 1.3 early data (0-RTT) is not implemented in LibreSSL, and
SSL_OP_IGNORE_UNEXPECTED_EOF does not exist there.

Index: imap/tls.c
--- imap/tls.c.orig
+++ imap/tls.c
@@ -112,7 +112,12 @@ static int early_data_enabled = 0; /* accept TLS 1.3 e
 /* How much early data a resumed client may send (one record) */
 #define TLS_MAX_EARLY_DATA (16384)
 
+#ifndef SSL_OP_IGNORE_UNEXPECTED_EOF
+/* LibreSSL does not have it; it is only a no-op there */
+#define SSL_OP_IGNORE_UNEXPECTED_EOF 0
+#endif
 
+
 EXPORTED int tls_enabled(void)
 {
     const char *val;
@@ -721,6 +726,12 @@ EXPORTED bool tls_enable_early_data(void)
     /* Without the session database there's nothing to resume */
     if (!sess_dbopen) return false;
 
+#ifdef LIBRESSL_VERSION_NUMBER
+    /* LibreSSL has no TLS 1.3 early data: SSL_read_early_data() is a
+     * stub that always reports none, so never claim to accept it */
+    (void) take_session_cb;
+    return false;
+#else
     /* Taking a session uses up its ticket, which is what stops replays;
      * OpenSSL's own check needs its in-process cache */
     SSL_CTX_sess_set_get_cb(s_ctx, take_session_cb);
@@ -730,6 +741,7 @@ EXPORTED bool tls_enable_early_data(void)
     early_data_enabled = 1;
 
     return true;
+#endif
 }
 
 /*
