[arch-commits] Commit in balsa/repos (12 files)
Christian Hesse
eworm at archlinux.org
Thu Mar 9 15:57:19 UTC 2017
Date: Thursday, March 9, 2017 @ 15:57:18
Author: eworm
Revision: 215408
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
balsa/repos/community-staging-i686/PKGBUILD
(from rev 215407, balsa/trunk/PKGBUILD)
balsa/repos/community-staging-i686/balsa-openssl-1.1.patch
(from rev 215407, balsa/trunk/balsa-openssl-1.1.patch)
balsa/repos/community-staging-i686/balsa.changelog
(from rev 215407, balsa/trunk/balsa.changelog)
balsa/repos/community-staging-x86_64/PKGBUILD
(from rev 215407, balsa/trunk/PKGBUILD)
balsa/repos/community-staging-x86_64/balsa-openssl-1.1.patch
(from rev 215407, balsa/trunk/balsa-openssl-1.1.patch)
balsa/repos/community-staging-x86_64/balsa.changelog
(from rev 215407, balsa/trunk/balsa.changelog)
Deleted:
balsa/repos/community-staging-i686/PKGBUILD
balsa/repos/community-staging-i686/balsa-openssl-1.1.patch
balsa/repos/community-staging-i686/balsa.changelog
balsa/repos/community-staging-x86_64/PKGBUILD
balsa/repos/community-staging-x86_64/balsa-openssl-1.1.patch
balsa/repos/community-staging-x86_64/balsa.changelog
--------------------------------------------------+
/PKGBUILD | 100 +++++++++++++
/balsa-openssl-1.1.patch | 156 +++++++++++++++++++++
/balsa.changelog | 22 ++
community-staging-i686/PKGBUILD | 50 ------
community-staging-i686/balsa-openssl-1.1.patch | 78 ----------
community-staging-i686/balsa.changelog | 11 -
community-staging-x86_64/PKGBUILD | 50 ------
community-staging-x86_64/balsa-openssl-1.1.patch | 78 ----------
community-staging-x86_64/balsa.changelog | 11 -
9 files changed, 278 insertions(+), 278 deletions(-)
Deleted: community-staging-i686/PKGBUILD
===================================================================
--- community-staging-i686/PKGBUILD 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-i686/PKGBUILD 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
-# Contributor: Roman Kyrylych <roman at archlinux.org>
-
-pkgname=balsa
-pkgver=2.5.3
-pkgrel=3
-pkgdesc="An e-mail client for GNOME"
-arch=('i686' 'x86_64')
-url='http://pawsa.fedorapeople.org/balsa/'
-license=('GPL')
-depends=('gmime' 'webkit2gtk' 'libesmtp' 'libnotify'
- 'gpgme' 'gtksourceview3' 'gspell' 'desktop-file-utils')
-makedepends=('yelp-tools' 'intltool')
-changelog=$pkgname.changelog
-source=(https://pawsa.fedorapeople.org/balsa/$pkgname-$pkgver.tar.bz2 balsa-openssl-1.1.patch)
-sha256sums=('b896ea6b16b31725e0d81ba4eac398b39ad5c33f2337a260448d2feac7e55396'
- '53f5639ffe5195803b8526c7a1e1ef2b96f6ba11c21b2a6b67e43c6433b3dca2')
-
-prepare() {
- cd $pkgname-$pkgver
- # Fix build with openssl 1.1 (Fedora)
- patch -p1 -i ../balsa-openssl-1.1.patch
-}
-
-build() {
- cd "${srcdir}"/$pkgname-$pkgver
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --with-gpgme=gpgme-config \
- --with-gss \
- --with-ldap \
- --with-gtksourceview \
- --with-spell-checker=gspell \
- --with-rubrica \
- --with-sqlite \
- --with-gnome \
- --with-html-widget=webkit2
- make
-}
-
-package() {
- cd "${srcdir}"/$pkgname-$pkgver
-
- make GTK_UPDATE_ICON_CACHE=/bin/true DESTDIR="${pkgdir}" install
-}
Copied: balsa/repos/community-staging-i686/PKGBUILD (from rev 215407, balsa/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Roman Kyrylych <roman at archlinux.org>
+
+pkgname=balsa
+pkgver=2.5.3
+pkgrel=5
+pkgdesc="An e-mail client for GNOME"
+arch=('i686' 'x86_64')
+url='http://pawsa.fedorapeople.org/balsa/'
+license=('GPL')
+depends=('gmime' 'webkit2gtk' 'libesmtp' 'libnotify'
+ 'gpgme' 'gtksourceview3' 'gspell' 'desktop-file-utils')
+makedepends=('yelp-tools' 'intltool')
+changelog=$pkgname.changelog
+source=(https://pawsa.fedorapeople.org/balsa/$pkgname-$pkgver.tar.bz2 balsa-openssl-1.1.patch)
+sha256sums=('b896ea6b16b31725e0d81ba4eac398b39ad5c33f2337a260448d2feac7e55396'
+ '53f5639ffe5195803b8526c7a1e1ef2b96f6ba11c21b2a6b67e43c6433b3dca2')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # Fix build with openssl 1.1 (Fedora)
+ patch -p1 -i ../balsa-openssl-1.1.patch
+}
+
+build() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-gpgme=gpgme-config \
+ --with-gss \
+ --with-ldap \
+ --with-gtksourceview \
+ --with-spell-checker=gspell \
+ --with-rubrica \
+ --with-sqlite \
+ --with-gnome \
+ --with-html-widget=webkit2
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ make GTK_UPDATE_ICON_CACHE=/bin/true DESTDIR="${pkgdir}" install
+}
Deleted: community-staging-i686/balsa-openssl-1.1.patch
===================================================================
--- community-staging-i686/balsa-openssl-1.1.patch 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-i686/balsa-openssl-1.1.patch 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,78 +0,0 @@
-diff --git a/libbalsa/imap/auth-cram.c b/libbalsa/imap/auth-cram.c
-index 62e076a..c29d327 100644
---- a/libbalsa/imap/auth-cram.c
-+++ b/libbalsa/imap/auth-cram.c
-@@ -131,7 +131,7 @@ static void
- hmac_md5 (const char* password, char* challenge,
- unsigned char* response)
- {
-- EVP_MD_CTX ctx;
-+ EVP_MD_CTX *ctx = EVP_MD_CTX_create();
- unsigned char ipad[MD5_BLOCK_LEN], opad[MD5_BLOCK_LEN];
- unsigned char secret[MD5_BLOCK_LEN+1];
- unsigned int secret_len, chal_len;
-@@ -143,9 +143,9 @@ hmac_md5 (const char* password, char* challenge,
- /* passwords longer than MD5_BLOCK_LEN bytes are substituted with their MD5
- * digests */
- if (secret_len > MD5_BLOCK_LEN) {
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, (const unsigned char*) password, secret_len);
-- EVP_DigestFinal(&ctx, secret, &secret_len);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, (const unsigned char*) password, secret_len);
-+ EVP_DigestFinal(ctx, secret, &secret_len);
- }
- else
- strncpy ((char *) secret, password, sizeof (secret));
-@@ -161,14 +161,16 @@ hmac_md5 (const char* password, char* challenge,
- }
-
- /* inner hash: challenge and ipadded secret */
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, ipad, MD5_BLOCK_LEN);
-- EVP_DigestUpdate(&ctx, (unsigned char*) challenge, chal_len);
-- EVP_DigestFinal(&ctx, response, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, ipad, MD5_BLOCK_LEN);
-+ EVP_DigestUpdate(ctx, (unsigned char*) challenge, chal_len);
-+ EVP_DigestFinal(ctx, response, NULL);
-
- /* outer hash: inner hash and opadded secret */
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, opad, MD5_BLOCK_LEN);
-- EVP_DigestUpdate(&ctx, response, chal_len);
-- EVP_DigestFinal(&ctx, response, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, opad, MD5_BLOCK_LEN);
-+ EVP_DigestUpdate(ctx, response, MD5_DIGEST_LEN);
-+ EVP_DigestFinal(ctx, response, NULL);
-+
-+ EVP_MD_CTX_destroy(ctx);
- }
-diff --git a/libbalsa/imap/pop3.c b/libbalsa/imap/pop3.c
-index 5cb6dd5..a72ce61 100644
---- a/libbalsa/imap/pop3.c
-+++ b/libbalsa/imap/pop3.c
-@@ -310,16 +310,17 @@ get_apop_stamp(const char *greeting, char *stamp)
- static void
- compute_auth_hash(char *stamp, char *hash, const char *passwd)
- {
-- EVP_MD_CTX ctx;
-+ EVP_MD_CTX* ctx = EVP_MD_CTX_create();
- register unsigned char *dp;
- register char *cp;
- unsigned char *ep;
- unsigned char digest[16];
-
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, stamp, strlen(stamp));
-- EVP_DigestUpdate(&ctx, passwd, strlen(passwd));
-- EVP_DigestFinal(&ctx, digest, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, stamp, strlen(stamp));
-+ EVP_DigestUpdate(ctx, passwd, strlen(passwd));
-+ EVP_DigestFinal(ctx, digest, NULL);
-+ EVP_MD_CTX_destroy(ctx);
-
- cp = hash;
- dp = digest;
Copied: balsa/repos/community-staging-i686/balsa-openssl-1.1.patch (from rev 215407, balsa/trunk/balsa-openssl-1.1.patch)
===================================================================
--- community-staging-i686/balsa-openssl-1.1.patch (rev 0)
+++ community-staging-i686/balsa-openssl-1.1.patch 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,78 @@
+diff --git a/libbalsa/imap/auth-cram.c b/libbalsa/imap/auth-cram.c
+index 62e076a..c29d327 100644
+--- a/libbalsa/imap/auth-cram.c
++++ b/libbalsa/imap/auth-cram.c
+@@ -131,7 +131,7 @@ static void
+ hmac_md5 (const char* password, char* challenge,
+ unsigned char* response)
+ {
+- EVP_MD_CTX ctx;
++ EVP_MD_CTX *ctx = EVP_MD_CTX_create();
+ unsigned char ipad[MD5_BLOCK_LEN], opad[MD5_BLOCK_LEN];
+ unsigned char secret[MD5_BLOCK_LEN+1];
+ unsigned int secret_len, chal_len;
+@@ -143,9 +143,9 @@ hmac_md5 (const char* password, char* challenge,
+ /* passwords longer than MD5_BLOCK_LEN bytes are substituted with their MD5
+ * digests */
+ if (secret_len > MD5_BLOCK_LEN) {
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, (const unsigned char*) password, secret_len);
+- EVP_DigestFinal(&ctx, secret, &secret_len);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, (const unsigned char*) password, secret_len);
++ EVP_DigestFinal(ctx, secret, &secret_len);
+ }
+ else
+ strncpy ((char *) secret, password, sizeof (secret));
+@@ -161,14 +161,16 @@ hmac_md5 (const char* password, char* challenge,
+ }
+
+ /* inner hash: challenge and ipadded secret */
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, ipad, MD5_BLOCK_LEN);
+- EVP_DigestUpdate(&ctx, (unsigned char*) challenge, chal_len);
+- EVP_DigestFinal(&ctx, response, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, ipad, MD5_BLOCK_LEN);
++ EVP_DigestUpdate(ctx, (unsigned char*) challenge, chal_len);
++ EVP_DigestFinal(ctx, response, NULL);
+
+ /* outer hash: inner hash and opadded secret */
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, opad, MD5_BLOCK_LEN);
+- EVP_DigestUpdate(&ctx, response, chal_len);
+- EVP_DigestFinal(&ctx, response, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, opad, MD5_BLOCK_LEN);
++ EVP_DigestUpdate(ctx, response, MD5_DIGEST_LEN);
++ EVP_DigestFinal(ctx, response, NULL);
++
++ EVP_MD_CTX_destroy(ctx);
+ }
+diff --git a/libbalsa/imap/pop3.c b/libbalsa/imap/pop3.c
+index 5cb6dd5..a72ce61 100644
+--- a/libbalsa/imap/pop3.c
++++ b/libbalsa/imap/pop3.c
+@@ -310,16 +310,17 @@ get_apop_stamp(const char *greeting, char *stamp)
+ static void
+ compute_auth_hash(char *stamp, char *hash, const char *passwd)
+ {
+- EVP_MD_CTX ctx;
++ EVP_MD_CTX* ctx = EVP_MD_CTX_create();
+ register unsigned char *dp;
+ register char *cp;
+ unsigned char *ep;
+ unsigned char digest[16];
+
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, stamp, strlen(stamp));
+- EVP_DigestUpdate(&ctx, passwd, strlen(passwd));
+- EVP_DigestFinal(&ctx, digest, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, stamp, strlen(stamp));
++ EVP_DigestUpdate(ctx, passwd, strlen(passwd));
++ EVP_DigestFinal(ctx, digest, NULL);
++ EVP_MD_CTX_destroy(ctx);
+
+ cp = hash;
+ dp = digest;
Deleted: community-staging-i686/balsa.changelog
===================================================================
--- community-staging-i686/balsa.changelog 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-i686/balsa.changelog 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,11 +0,0 @@
-2016-12-20 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.3-1
-
-2016-04-29 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.2-3 pacman hooks rebuild
-
-2015-07-11 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.2-1
-
-2013-05-18 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.1-1
Copied: balsa/repos/community-staging-i686/balsa.changelog (from rev 215407, balsa/trunk/balsa.changelog)
===================================================================
--- community-staging-i686/balsa.changelog (rev 0)
+++ community-staging-i686/balsa.changelog 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,11 @@
+2016-12-20 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.3-1
+
+2016-04-29 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.2-3 pacman hooks rebuild
+
+2015-07-11 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.2-1
+
+2013-05-18 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.1-1
Deleted: community-staging-x86_64/PKGBUILD
===================================================================
--- community-staging-x86_64/PKGBUILD 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-x86_64/PKGBUILD 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-# Contributor: Brad Fanella <bradfanella at archlinux.us>
-# Contributor: Roman Kyrylych <roman at archlinux.org>
-
-pkgname=balsa
-pkgver=2.5.3
-pkgrel=3
-pkgdesc="An e-mail client for GNOME"
-arch=('i686' 'x86_64')
-url='http://pawsa.fedorapeople.org/balsa/'
-license=('GPL')
-depends=('gmime' 'webkit2gtk' 'libesmtp' 'libnotify'
- 'gpgme' 'gtksourceview3' 'gspell' 'desktop-file-utils')
-makedepends=('yelp-tools' 'intltool')
-changelog=$pkgname.changelog
-source=(https://pawsa.fedorapeople.org/balsa/$pkgname-$pkgver.tar.bz2 balsa-openssl-1.1.patch)
-sha256sums=('b896ea6b16b31725e0d81ba4eac398b39ad5c33f2337a260448d2feac7e55396'
- '53f5639ffe5195803b8526c7a1e1ef2b96f6ba11c21b2a6b67e43c6433b3dca2')
-
-prepare() {
- cd $pkgname-$pkgver
- # Fix build with openssl 1.1 (Fedora)
- patch -p1 -i ../balsa-openssl-1.1.patch
-}
-
-build() {
- cd "${srcdir}"/$pkgname-$pkgver
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --with-gpgme=gpgme-config \
- --with-gss \
- --with-ldap \
- --with-gtksourceview \
- --with-spell-checker=gspell \
- --with-rubrica \
- --with-sqlite \
- --with-gnome \
- --with-html-widget=webkit2
- make
-}
-
-package() {
- cd "${srcdir}"/$pkgname-$pkgver
-
- make GTK_UPDATE_ICON_CACHE=/bin/true DESTDIR="${pkgdir}" install
-}
Copied: balsa/repos/community-staging-x86_64/PKGBUILD (from rev 215407, balsa/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Brad Fanella <bradfanella at archlinux.us>
+# Contributor: Roman Kyrylych <roman at archlinux.org>
+
+pkgname=balsa
+pkgver=2.5.3
+pkgrel=5
+pkgdesc="An e-mail client for GNOME"
+arch=('i686' 'x86_64')
+url='http://pawsa.fedorapeople.org/balsa/'
+license=('GPL')
+depends=('gmime' 'webkit2gtk' 'libesmtp' 'libnotify'
+ 'gpgme' 'gtksourceview3' 'gspell' 'desktop-file-utils')
+makedepends=('yelp-tools' 'intltool')
+changelog=$pkgname.changelog
+source=(https://pawsa.fedorapeople.org/balsa/$pkgname-$pkgver.tar.bz2 balsa-openssl-1.1.patch)
+sha256sums=('b896ea6b16b31725e0d81ba4eac398b39ad5c33f2337a260448d2feac7e55396'
+ '53f5639ffe5195803b8526c7a1e1ef2b96f6ba11c21b2a6b67e43c6433b3dca2')
+
+prepare() {
+ cd $pkgname-$pkgver
+ # Fix build with openssl 1.1 (Fedora)
+ patch -p1 -i ../balsa-openssl-1.1.patch
+}
+
+build() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-gpgme=gpgme-config \
+ --with-gss \
+ --with-ldap \
+ --with-gtksourceview \
+ --with-spell-checker=gspell \
+ --with-rubrica \
+ --with-sqlite \
+ --with-gnome \
+ --with-html-widget=webkit2
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ make GTK_UPDATE_ICON_CACHE=/bin/true DESTDIR="${pkgdir}" install
+}
Deleted: community-staging-x86_64/balsa-openssl-1.1.patch
===================================================================
--- community-staging-x86_64/balsa-openssl-1.1.patch 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-x86_64/balsa-openssl-1.1.patch 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,78 +0,0 @@
-diff --git a/libbalsa/imap/auth-cram.c b/libbalsa/imap/auth-cram.c
-index 62e076a..c29d327 100644
---- a/libbalsa/imap/auth-cram.c
-+++ b/libbalsa/imap/auth-cram.c
-@@ -131,7 +131,7 @@ static void
- hmac_md5 (const char* password, char* challenge,
- unsigned char* response)
- {
-- EVP_MD_CTX ctx;
-+ EVP_MD_CTX *ctx = EVP_MD_CTX_create();
- unsigned char ipad[MD5_BLOCK_LEN], opad[MD5_BLOCK_LEN];
- unsigned char secret[MD5_BLOCK_LEN+1];
- unsigned int secret_len, chal_len;
-@@ -143,9 +143,9 @@ hmac_md5 (const char* password, char* challenge,
- /* passwords longer than MD5_BLOCK_LEN bytes are substituted with their MD5
- * digests */
- if (secret_len > MD5_BLOCK_LEN) {
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, (const unsigned char*) password, secret_len);
-- EVP_DigestFinal(&ctx, secret, &secret_len);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, (const unsigned char*) password, secret_len);
-+ EVP_DigestFinal(ctx, secret, &secret_len);
- }
- else
- strncpy ((char *) secret, password, sizeof (secret));
-@@ -161,14 +161,16 @@ hmac_md5 (const char* password, char* challenge,
- }
-
- /* inner hash: challenge and ipadded secret */
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, ipad, MD5_BLOCK_LEN);
-- EVP_DigestUpdate(&ctx, (unsigned char*) challenge, chal_len);
-- EVP_DigestFinal(&ctx, response, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, ipad, MD5_BLOCK_LEN);
-+ EVP_DigestUpdate(ctx, (unsigned char*) challenge, chal_len);
-+ EVP_DigestFinal(ctx, response, NULL);
-
- /* outer hash: inner hash and opadded secret */
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, opad, MD5_BLOCK_LEN);
-- EVP_DigestUpdate(&ctx, response, chal_len);
-- EVP_DigestFinal(&ctx, response, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, opad, MD5_BLOCK_LEN);
-+ EVP_DigestUpdate(ctx, response, MD5_DIGEST_LEN);
-+ EVP_DigestFinal(ctx, response, NULL);
-+
-+ EVP_MD_CTX_destroy(ctx);
- }
-diff --git a/libbalsa/imap/pop3.c b/libbalsa/imap/pop3.c
-index 5cb6dd5..a72ce61 100644
---- a/libbalsa/imap/pop3.c
-+++ b/libbalsa/imap/pop3.c
-@@ -310,16 +310,17 @@ get_apop_stamp(const char *greeting, char *stamp)
- static void
- compute_auth_hash(char *stamp, char *hash, const char *passwd)
- {
-- EVP_MD_CTX ctx;
-+ EVP_MD_CTX* ctx = EVP_MD_CTX_create();
- register unsigned char *dp;
- register char *cp;
- unsigned char *ep;
- unsigned char digest[16];
-
-- EVP_DigestInit(&ctx, EVP_md5());
-- EVP_DigestUpdate(&ctx, stamp, strlen(stamp));
-- EVP_DigestUpdate(&ctx, passwd, strlen(passwd));
-- EVP_DigestFinal(&ctx, digest, NULL);
-+ EVP_DigestInit(ctx, EVP_md5());
-+ EVP_DigestUpdate(ctx, stamp, strlen(stamp));
-+ EVP_DigestUpdate(ctx, passwd, strlen(passwd));
-+ EVP_DigestFinal(ctx, digest, NULL);
-+ EVP_MD_CTX_destroy(ctx);
-
- cp = hash;
- dp = digest;
Copied: balsa/repos/community-staging-x86_64/balsa-openssl-1.1.patch (from rev 215407, balsa/trunk/balsa-openssl-1.1.patch)
===================================================================
--- community-staging-x86_64/balsa-openssl-1.1.patch (rev 0)
+++ community-staging-x86_64/balsa-openssl-1.1.patch 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,78 @@
+diff --git a/libbalsa/imap/auth-cram.c b/libbalsa/imap/auth-cram.c
+index 62e076a..c29d327 100644
+--- a/libbalsa/imap/auth-cram.c
++++ b/libbalsa/imap/auth-cram.c
+@@ -131,7 +131,7 @@ static void
+ hmac_md5 (const char* password, char* challenge,
+ unsigned char* response)
+ {
+- EVP_MD_CTX ctx;
++ EVP_MD_CTX *ctx = EVP_MD_CTX_create();
+ unsigned char ipad[MD5_BLOCK_LEN], opad[MD5_BLOCK_LEN];
+ unsigned char secret[MD5_BLOCK_LEN+1];
+ unsigned int secret_len, chal_len;
+@@ -143,9 +143,9 @@ hmac_md5 (const char* password, char* challenge,
+ /* passwords longer than MD5_BLOCK_LEN bytes are substituted with their MD5
+ * digests */
+ if (secret_len > MD5_BLOCK_LEN) {
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, (const unsigned char*) password, secret_len);
+- EVP_DigestFinal(&ctx, secret, &secret_len);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, (const unsigned char*) password, secret_len);
++ EVP_DigestFinal(ctx, secret, &secret_len);
+ }
+ else
+ strncpy ((char *) secret, password, sizeof (secret));
+@@ -161,14 +161,16 @@ hmac_md5 (const char* password, char* challenge,
+ }
+
+ /* inner hash: challenge and ipadded secret */
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, ipad, MD5_BLOCK_LEN);
+- EVP_DigestUpdate(&ctx, (unsigned char*) challenge, chal_len);
+- EVP_DigestFinal(&ctx, response, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, ipad, MD5_BLOCK_LEN);
++ EVP_DigestUpdate(ctx, (unsigned char*) challenge, chal_len);
++ EVP_DigestFinal(ctx, response, NULL);
+
+ /* outer hash: inner hash and opadded secret */
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, opad, MD5_BLOCK_LEN);
+- EVP_DigestUpdate(&ctx, response, chal_len);
+- EVP_DigestFinal(&ctx, response, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, opad, MD5_BLOCK_LEN);
++ EVP_DigestUpdate(ctx, response, MD5_DIGEST_LEN);
++ EVP_DigestFinal(ctx, response, NULL);
++
++ EVP_MD_CTX_destroy(ctx);
+ }
+diff --git a/libbalsa/imap/pop3.c b/libbalsa/imap/pop3.c
+index 5cb6dd5..a72ce61 100644
+--- a/libbalsa/imap/pop3.c
++++ b/libbalsa/imap/pop3.c
+@@ -310,16 +310,17 @@ get_apop_stamp(const char *greeting, char *stamp)
+ static void
+ compute_auth_hash(char *stamp, char *hash, const char *passwd)
+ {
+- EVP_MD_CTX ctx;
++ EVP_MD_CTX* ctx = EVP_MD_CTX_create();
+ register unsigned char *dp;
+ register char *cp;
+ unsigned char *ep;
+ unsigned char digest[16];
+
+- EVP_DigestInit(&ctx, EVP_md5());
+- EVP_DigestUpdate(&ctx, stamp, strlen(stamp));
+- EVP_DigestUpdate(&ctx, passwd, strlen(passwd));
+- EVP_DigestFinal(&ctx, digest, NULL);
++ EVP_DigestInit(ctx, EVP_md5());
++ EVP_DigestUpdate(ctx, stamp, strlen(stamp));
++ EVP_DigestUpdate(ctx, passwd, strlen(passwd));
++ EVP_DigestFinal(ctx, digest, NULL);
++ EVP_MD_CTX_destroy(ctx);
+
+ cp = hash;
+ dp = digest;
Deleted: community-staging-x86_64/balsa.changelog
===================================================================
--- community-staging-x86_64/balsa.changelog 2017-03-09 15:57:14 UTC (rev 215407)
+++ community-staging-x86_64/balsa.changelog 2017-03-09 15:57:18 UTC (rev 215408)
@@ -1,11 +0,0 @@
-2016-12-20 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.3-1
-
-2016-04-29 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.2-3 pacman hooks rebuild
-
-2015-07-11 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.2-1
-
-2013-05-18 Jaroslav Lichtblau <svetlemodry at archlinux.org>
- * balsa 2.5.1-1
Copied: balsa/repos/community-staging-x86_64/balsa.changelog (from rev 215407, balsa/trunk/balsa.changelog)
===================================================================
--- community-staging-x86_64/balsa.changelog (rev 0)
+++ community-staging-x86_64/balsa.changelog 2017-03-09 15:57:18 UTC (rev 215408)
@@ -0,0 +1,11 @@
+2016-12-20 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.3-1
+
+2016-04-29 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.2-3 pacman hooks rebuild
+
+2015-07-11 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.2-1
+
+2013-05-18 Jaroslav Lichtblau <svetlemodry at archlinux.org>
+ * balsa 2.5.1-1
More information about the arch-commits
mailing list