missed a variable that should've been made const
authorKen Raeburn <raeburn@mit.edu>
Sun, 21 Jan 2001 01:27:53 +0000 (01:27 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 21 Jan 2001 01:27:53 +0000 (01:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12929 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/des/ChangeLog
src/lib/crypto/des/afsstring2key.c

index 0f3eea2784ca5db970dbdc1a5e37daaa68204201..09d8849807c174b0a4645973a19d76eeae7ccb95 100644 (file)
@@ -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.
index 20a2847711c0e67c2e876a2760056ce0a3fc8263..fa2275cf8605dafb1bb518e505d1b36633c70e5c 100644 (file)
@@ -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,