summaryrefslogtreecommitdiff
path: root/win32/fcrypt.c
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-12-08 00:58:24 -0500
committerFather Chrysostomos <sprout@cpan.org>2014-12-08 14:14:57 -0800
commit2adef77e7a89cf7f4241acf45453bdfeaaeddaf4 (patch)
treedb8dbaaabbdef7ffaf2f9dbe04af1089938fae2b /win32/fcrypt.c
parent8b51b1ff0a9db54985af9f69c82433388daab5c7 (diff)
downloadperl-2adef77e7a89cf7f4241acf45453bdfeaaeddaf4.tar.gz
add const to every table in win32/fcrypt.c
See [perl #123386] for details.
Diffstat (limited to 'win32/fcrypt.c')
-rw-r--r--win32/fcrypt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win32/fcrypt.c b/win32/fcrypt.c
index ec689e57df..fd42d75922 100644
--- a/win32/fcrypt.c
+++ b/win32/fcrypt.c
@@ -39,7 +39,7 @@ typedef struct des_ks_struct
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
*((c)++)=(unsigned char)(((l)>>24)&0xff))
-static unsigned long SPtrans[8][64]={
+static const unsigned long SPtrans[8][64]={
{ /* nibble 0 */
0x00820200, 0x00020000, 0x80800000, 0x80820200,
0x00800000, 0x80020200, 0x80020000, 0x80800000,
@@ -177,7 +177,7 @@ static unsigned long SPtrans[8][64]={
0x00000020, 0x08208000, 0x00208020, 0x00000000,
0x08000000, 0x08200020, 0x00008000, 0x00208020}
};
-static unsigned long skb[8][64]={
+static const unsigned long skb[8][64]={
{ /* for C bits (numbered as per FIPS 46) 1 2 3 4 5 6 */
0x00000000,0x00000010,0x20000000,0x20000010,
0x00010000,0x00010010,0x20010000,0x20010010,
@@ -324,7 +324,7 @@ static unsigned long skb[8][64]={
#define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),\
(a)=(a)^(t)^(t>>(16-(n))))\
-static char shifts2[16]={0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0};
+static const char shifts2[16]={0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0};
static int body(
unsigned long *out0,
@@ -434,7 +434,7 @@ des_set_key(des_cblock *key, des_key_schedule schedule)
SPtrans[6][(u>>24)&0x3f];
#endif
-unsigned char con_salt[128]={
+unsigned const char con_salt[128]={
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
@@ -453,7 +453,7 @@ unsigned char con_salt[128]={
0x3D,0x3E,0x3F,0x00,0x00,0x00,0x00,0x00,
};
-unsigned char cov_2char[64]={
+unsigned const char cov_2char[64]={
0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,
0x36,0x37,0x38,0x39,0x41,0x42,0x43,0x44,
0x45,0x46,0x47,0x48,0x49,0x4A,0x4B,0x4C,