From: Rosen Penev Date: Sat, 27 Apr 2019 18:20:41 +0000 (-0700) Subject: ssmpt: Fix compilation without deprecated OpenSSL APIs X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bba043ee47f3774b525e67124f4df5141a87f165;p=feed%2Fpackages.git ssmpt: Fix compilation without deprecated OpenSSL APIs Signed-off-by: Rosen Penev --- diff --git a/mail/ssmtp/Makefile b/mail/ssmtp/Makefile index fb976d5e63..f6322cf619 100644 --- a/mail/ssmtp/Makefile +++ b/mail/ssmtp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ssmtp PKG_VERSION:=2.64 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_MAINTAINER:=Dirk Brenken PKG_LICENSE:=GPL-2.0+ diff --git a/mail/ssmtp/patches/020-openssl-deprecated.patch b/mail/ssmtp/patches/020-openssl-deprecated.patch new file mode 100644 index 0000000000..c4cc6b2e00 --- /dev/null +++ b/mail/ssmtp/patches/020-openssl-deprecated.patch @@ -0,0 +1,13 @@ +--- a/ssmtp.c ++++ b/ssmtp.c +@@ -1046,8 +1046,10 @@ int smtp_open(char *host, int port) + /* Init SSL stuff */ + SSL_CTX *ctx = NULL; + X509 *server_cert; ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + SSL_load_error_strings(); + SSLeay_add_ssl_algorithms(); ++#endif + ctx = SSL_CTX_new(SSLv23_client_method()); + if(!ctx) { + log_event(LOG_ERR, "No SSL support initiated\n");