openbsd-ports/security/cfs/patches/patch-cfs_des_c
sturm 47b40eba3b update to cfs 1.4.1
CFS was actually broken since at least 3.2 or so, but should work now
again on 32-bit archs. 64-bit archs are still broken and won't be
fixed anytime soon.

I also set PERMIT_*=Yes, as the "no fee" part of the license is clearly
due to bad english.

xsa@ helped testing
2004-06-15 18:32:22 +00:00

16 lines
604 B
Plaintext

$OpenBSD: patch-cfs_des_c,v 1.2 2004/06/15 18:32:22 sturm Exp $
--- cfs_des.c.orig 2004-06-10 11:06:08.000000000 +0200
+++ cfs_des.c 2004-06-10 11:06:45.000000000 +0200
@@ -140,7 +140,10 @@ int decrypting;
register key_offset;
int j,k;
static int lk= -1;
- static char lastkey[4][8]={"xxxxxxx","xxxxxxx","xxxxxxx","xxxxxxx"};
+ static char lastkey[4][8]={
+ {'x','x','x','x','x','x','x'}, {'x','x','x','x','x','x','x'},
+ {'x','x','x','x','x','x','x'}, {'x','x','x','x','x','x','x'}
+ };
static char expanded_key[4][128];
/* now caches 4 session keys. drops least recently added */