* arcfour.c (arcfour_weakkey1, arcfour_weakkey2, arcfour_weakkeys): Now const
authorKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 02:28:09 +0000 (02:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sat, 20 Dec 2003 02:28:09 +0000 (02:28 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15946 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/enc_provider/ChangeLog
src/lib/crypto/enc_provider/arcfour.c

index a11976c64d427e9fb7c4dcf47681740af1cd06d6..35af03625810dc58f9b1c2a2374229a828a6ad3c 100644 (file)
@@ -1,5 +1,8 @@
 2003-12-19  Ken Raeburn  <raeburn@mit.edu>
 
+       * arcfour.c (arcfour_weakkey1, arcfour_weakkey2,
+       arcfour_weakkeys): Now const.
+
        * des.c (mit_des_zeroblock): Don't define here.
        * des3.c (mit_des_zeroblock): Don't define here.
 
index d3a600b299d221a90447de4cb14690fc87275987..685f89a890f54a0ab290180b640f1cc15b088cae 100644 (file)
@@ -33,13 +33,14 @@ k5_arcfour_docrypt(const krb5_keyblock *, const krb5_data *,
 static krb5_error_code
 k5_arcfour_make_key(const krb5_data *, krb5_keyblock *);
 
-static unsigned char arcfour_weakkey1[] = {0x00, 0x00, 0xfd};
-static unsigned char arcfour_weakkey2[] = {0x03, 0xfd, 0xfc};
-static krb5_data arcfour_weakkeys[] = { {KV5M_DATA, sizeof (arcfour_weakkey1),
-                                        (char * ) arcfour_weakkey1},
-                                       {KV5M_DATA, sizeof (arcfour_weakkey2),
-                                        (char * ) arcfour_weakkey2},
-                                       {KV5M_DATA, 0, 0}
+static const unsigned char arcfour_weakkey1[] = {0x00, 0x00, 0xfd};
+static const unsigned char arcfour_weakkey2[] = {0x03, 0xfd, 0xfc};
+static const krb5_data arcfour_weakkeys[] = {
+    {KV5M_DATA, sizeof (arcfour_weakkey1),
+     (char * ) arcfour_weakkey1},
+    {KV5M_DATA, sizeof (arcfour_weakkey2),
+     (char * ) arcfour_weakkey2},
+    {KV5M_DATA, 0, 0}
 };
 
 /*xxx we really should check for c9x here and use inline on