Browse Source

n/gnupg: Patched to fix symmetric encryption.

current-20200608
Damien Goutte-Gattat 4 months ago
parent
commit
c0b338fa3a
  1. 26
      n/gnupg/gnupg-2.3.2-fix-symmetric-encryption.patch
  2. 4
      n/gnupg/gnupg.SlackBuild

26
n/gnupg/gnupg-2.3.2-fix-symmetric-encryption.patch

@ -0,0 +1,26 @@
commit af3b1901549baa8fbe8140d9fa75a4a2b7a77a7e
Author: Werner Koch <wk@gnupg.org>
Date: Tue Sep 7 08:57:44 2021 +0200
agent: Fix segv in GET_PASSPHRASE (regression)
* agent/command.c (cmd_get_passphrase): Do not deref PI. PI is always
NULL.
--
Fixes-commit: b89b1f35c29ceaebe39b31444936aa66c9297f2c
GnuPG-bug-id: 5577
diff --git a/agent/command.c b/agent/command.c
index 5e2dbc809..3e074443a 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1955,7 +1955,7 @@ cmd_get_passphrase (assuan_context_t ctx, char *line)
opt_qualbar, cacheid, CACHE_MODE_USER, NULL);
xfree (entry_errtext);
entry_errtext = NULL;
- is_generated = !!(pi->status & PINENTRY_STATUS_PASSWORD_GENERATED);
+ is_generated = 0;
if (!rc)
{

4
n/gnupg/gnupg.SlackBuild

@ -38,7 +38,7 @@ WGET=${WGET:-https://gnupg.org/ftp/gcrypt/gnupg/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-gnupg}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -89,6 +89,8 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Fix broken symmetric encryption (https://dev.gnupg.org/T5577).
patch -p 1 < $CWD/gnupg-2.3.2-fix-symmetric-encryption.patch
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \

Loading…
Cancel
Save