From f95f67bd8edef21bd52954501c847858307c3b8a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 21 Jan 2001 01:27:53 +0000 Subject: [PATCH] missed a variable that should've been made const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12929 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/des/ChangeLog | 3 ++- src/lib/crypto/des/afsstring2key.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/des/ChangeLog b/src/lib/crypto/des/ChangeLog index 0f3eea278..09d884980 100644 --- a/src/lib/crypto/des/ChangeLog +++ b/src/lib/crypto/des/ChangeLog @@ -2,7 +2,8 @@ * afsstring2key.c (mit_afs_string_to_key): Allocate and pass buffer for afs_crypt. Don't use static storage for key schedule. - (IP, FP, PC1_C, PC1_D, shifts, PC2_C, PC2_D, E, e, P): Now const. + (IP, FP, PC1_C, PC1_D, shifts, PC2_C, PC2_D, E, e, P, S): Now + const. (C, D, KS, L, R, tempL, f, preS): Static variables deleted. (afs_crypt): Allocate them here, and pass pointers to other routines. diff --git a/src/lib/crypto/des/afsstring2key.c b/src/lib/crypto/des/afsstring2key.c index 20a284771..fa2275cf8 100644 --- a/src/lib/crypto/des/afsstring2key.c +++ b/src/lib/crypto/des/afsstring2key.c @@ -278,7 +278,7 @@ static const char P[] = { * For some reason, they give a 0-origin * index, unlike everything else. */ -static char S[8][64] = { +static const char S[8][64] = { {14, 4,13, 1, 2,15,11, 8, 3,10, 6,12, 5, 9, 0, 7, 0,15, 7, 4,14, 2,13, 1,10, 6,12,11, 9, 5, 3, 8, 4, 1,14, 8,13, 6, 2,11,15,12, 9, 7, 3,10, 5, 0, -- 2.26.2