From 4df2021e49f5cd9efea175f50033cf27fd3b2dd8 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 10 Aug 2023 13:22:20 +0200 Subject: fix openssl compatibility with <3.0 --- tls.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tls.h b/tls.h index 3046c4e..7dc999e 100644 --- a/tls.h +++ b/tls.h @@ -4,9 +4,11 @@ #include #include -/* ECC: make sure we have at least 1.0.0 */ -#if !defined(OPENSSL_NO_EC) && defined(TLSEXT_ECPOINTFORMAT_uncompressed) -#define HAVE_ECC +/* + * Always used when defined, SMTP has no truncation attacks. + */ +#ifndef SSL_OP_IGNORE_UNEXPECTED_EOF +#define SSL_OP_IGNORE_UNEXPECTED_EOF 0L #endif extern int smtps; -- cgit v1.2.3