Browse Source

l/scute: Patched for TLS 1.2 support.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
61edfdad5b
  1. 12
      l/scute/gnupg-2.0.24-tls12.diff
  2. 12
      l/scute/scute-1.4.0-tls12.diff
  3. 6
      l/scute/scute.SlackBuild

12
l/scute/gnupg-2.0.24-tls12.diff

@ -0,0 +1,12 @@
diff -Naur gnupg-2.0.24.orig/agent/command.c gnupg-2.0.24/agent/command.c
--- gnupg-2.0.24.orig/agent/command.c 2014-06-24 13:50:15.000000000 +0200
+++ gnupg-2.0.24/agent/command.c 2014-09-01 23:05:10.052415294 +0200
@@ -649,7 +649,7 @@
if (rc)
return rc;
n /= 2;
- if (algo == MD_USER_TLS_MD5SHA1 && n == 36)
+ if (algo == MD_USER_TLS_MD5SHA1 && (n == 36 || n == 51))
;
else if (n != 16 && n != 20 && n != 24
&& n != 28 && n != 32 && n != 48 && n != 64)

12
l/scute/scute-1.4.0-tls12.diff

@ -0,0 +1,12 @@
diff -Naur scute-38bdba0.orig/src/agent.c scute-38bdba0/src/agent.c
--- scute-38bdba0.orig/src/agent.c 2010-04-21 04:57:53.000000000 +0200
+++ scute-38bdba0/src/agent.c 2014-09-01 23:21:27.722285606 +0200
@@ -996,7 +996,7 @@
{
char cmd[150];
gpg_error_t err;
-#define MAX_DATA_LEN 36
+#define MAX_DATA_LEN 128
unsigned char pretty_data[2 * MAX_DATA_LEN + 1];
int i;
struct signature sig;

6
l/scute/scute.SlackBuild

@ -33,7 +33,7 @@ WGET=${WGET:-http://git.gnupg.org/cgi-bin/gitweb.cgi?p=scute.git;a=snapshot;h=$C
# Build infos
NAMEPKG=${NAMEPKG:-scute}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -84,6 +84,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Patch from Oliver Winker to support TLS 1.2
# <http://www.gossamer-threads.com/lists/gnupg/users/67663>
# (Work together with the accompanying patch for GnuPG-2.x)
patch -p 1 < $CWD/scute-1.4.0-tls12.diff
./autogen.sh
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \

Loading…
Cancel
Save