Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make constant data const in ntlm.c
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 7, 2015
1 parent 8d894ff commit 38c999e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ntlm.c
Expand Up @@ -400,7 +400,7 @@ static int md4sum (struct oc_text_buf *buf, unsigned char digest[16])
}

/* Public domain DES implementation from Phil Karn */
static uint32_t Spbox[8][64] = {
static const uint32_t Spbox[8][64] = {
{ 0x01010400, 0x00000000, 0x00010000, 0x01010404,
0x01010004, 0x00010404, 0x00000004, 0x00010000,
0x00000400, 0x01010400, 0x01010404, 0x00000400,
Expand Down Expand Up @@ -639,7 +639,7 @@ static void des (uint32_t ks[16][2], unsigned char block[8])
/* Key schedule-related tables from FIPS-46 */

/* permuted choice table (key) */
static unsigned char pc1[] = {
static const unsigned char pc1[] = {
57, 49, 41, 33, 25, 17, 9,
1, 58, 50, 42, 34, 26, 18,
10, 2, 59, 51, 43, 35, 27,
Expand All @@ -652,12 +652,12 @@ static unsigned char pc1[] = {
};

/* number left rotations of pc1 */
static unsigned char totrot[] = {
static const unsigned char totrot[] = {
1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28
};

/* permuted choice key (table) */
static unsigned char pc2[] = {
static const unsigned char pc2[] = {
14, 17, 11, 24, 1, 5,
3, 28, 15, 6, 21, 10,
23, 19, 12, 4, 26, 8,
Expand All @@ -671,7 +671,7 @@ static unsigned char pc2[] = {
/* End of DES-defined tables */

/* bit 0 is left-most in byte */
static int bytebit[] = {
static const int bytebit[] = {
0200,0100,040,020,010,04,02,01
};

Expand Down

0 comments on commit 38c999e

Please sign in to comment.