aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmcrypt/fix_enigma.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/libmcrypt/fix_enigma.patch')
-rw-r--r--main/libmcrypt/fix_enigma.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/libmcrypt/fix_enigma.patch b/main/libmcrypt/fix_enigma.patch
new file mode 100644
index 0000000000..bdcff7cfbe
--- /dev/null
+++ b/main/libmcrypt/fix_enigma.patch
@@ -0,0 +1,21 @@
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917203
+
+--- src/modules/algorithms/enigma.h.orig 2002-03-09 21:17:08.000000000 +0100
++++ src/modules/algorithms/enigma.h 2019-04-07 13:54:03.000000000 +0200
+@@ -3,11 +3,11 @@
+ #define MASK 0377
+
+ typedef struct crypt_key {
+- char t1[ROTORSZ];
+- char t2[ROTORSZ];
+- char t3[ROTORSZ];
+- char deck[ROTORSZ];
+- char cbuf[13];
++ signed char t1[ROTORSZ];
++ signed char t2[ROTORSZ];
++ signed char t3[ROTORSZ];
++ signed char deck[ROTORSZ];
++ signed char cbuf[13];
+ int n1, n2, nr1, nr2;
+ } CRYPT_KEY;
+ \ No newline at end of file