dovecot: Fix compilation for OpenSSL without deprecated APIs 7341/head
authorRosen Penev <rosenp@gmail.com>
Wed, 7 Nov 2018 03:10:20 +0000 (19:10 -0800)
committerRosen Penev <rosenp@gmail.com>
Wed, 7 Nov 2018 03:10:20 +0000 (19:10 -0800)
Signed-off-by: Rosen Penev <rosenp@gmail.com>
mail/dovecot/Makefile
mail/dovecot/patches/100-openssl-deprecated.patch [new file with mode: 0644]

index 17bccd1b22b0da6a7bc918f9615a98b685eca8b2..619e906d78d3ba52a4c3fd7b6708e2c678a0ee02 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dovecot
 PKG_VERSION:=2.3.2.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.dovecot.org/releases/2.3
diff --git a/mail/dovecot/patches/100-openssl-deprecated.patch b/mail/dovecot/patches/100-openssl-deprecated.patch
new file mode 100644 (file)
index 0000000..529413f
--- /dev/null
@@ -0,0 +1,26 @@
+diff --git a/src/lib-dcrypt/dcrypt-openssl.c b/src/lib-dcrypt/dcrypt-openssl.c
+index c2dbd30..201ab40 100644
+--- a/src/lib-dcrypt/dcrypt-openssl.c
++++ b/src/lib-dcrypt/dcrypt-openssl.c
+@@ -20,6 +20,7 @@
+ #include <openssl/engine.h>
+ #include <openssl/hmac.h>
+ #include <openssl/objects.h>
++#include <openssl/bn.h>
+ #include "dcrypt.h"
+ #include "dcrypt-private.h"
+diff --git a/src/lib-ssl-iostream/iostream-openssl-context.c b/src/lib-ssl-iostream/iostream-openssl-context.c
+index e3c902e..ad6a9c1 100644
+--- a/src/lib-ssl-iostream/iostream-openssl-context.c
++++ b/src/lib-ssl-iostream/iostream-openssl-context.c
+@@ -6,6 +6,9 @@
+ #include "dovecot-openssl-common.h"
+ #include <openssl/crypto.h>
++#include <openssl/rsa.h>
++#include <openssl/dh.h>
++#include <openssl/bn.h>
+ #include <openssl/x509.h>
+ #include <openssl/pem.h>
+ #include <openssl/ssl.h>