imapfilter: update to 2.6.10.

Closes: #7874 [via git-merge-pr]
This commit is contained in:
maxice8 2017-09-29 09:48:05 -03:00 committed by lemmi
parent cc275a1935
commit 5a77508a9b
2 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1,22 @@
Taken from commit c1865ba1ab2fd8da14e5e018ab55c79cbc432295 on upstream
--- src/auth.c
+++ src/auth.c
@@ -20,7 +20,7 @@ auth_cram_md5(const char *user, const char *pass, unsigned char *chal)
unsigned char *resp, *buf, *out;
unsigned char md[EVP_MAX_MD_SIZE], mdhex[EVP_MAX_MD_SIZE * 2 + 1];
unsigned int mdlen;
-#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
+#if OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER)
HMAC_CTX *ctx;
#else
HMAC_CTX ctx;
@@ -32,7 +32,7 @@ auth_cram_md5(const char *user, const char *pass, unsigned char *chal)
EVP_DecodeBlock(resp, chal, strlen((char *)(chal)));
-#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
+#if OPENSSL_VERSION_NUMBER >= 0x1010000fL && !defined(LIBRESSL_VERSION_NUMBER)
ctx = HMAC_CTX_new();
HMAC_Init_ex(ctx, (const unsigned char *)pass, strlen(pass),
EVP_md5(), NULL);

View file

@ -1,7 +1,7 @@
# Template file for 'imapfilter'
pkgname=imapfilter
version=2.6.7
revision=3
version=2.6.10
revision=1
build_style=gnu-makefile
make_build_args="DESTIDIR=${DESTDIR} PREFIX=/usr"
hostmakedepends="lua-devel"
@ -11,7 +11,7 @@ maintainer="lemmi <lemmi@nerd2nerd.org>"
license="MIT"
homepage="https://github.com/lefcha/imapfilter"
distfiles="https://github.com/lefcha/imapfilter/archive/v${version}.tar.gz"
checksum=183efd43c805abaf3f60a1bca788d42da7f05c52fc952efd4555fa40233b4868
checksum=891674d4c605667ad5ce912913784ecffa3b31b67bcf76d81c3c555cf97e5294
post_configure() {
sed -i \