OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________
________________
Server: cvs.openssl.org Name: Andy
Polyakov
Root: /v/openssl/cvs Email: appro openssl.org
Module: openssl Date:
31-Aug-2007 12:12:36
Branch: HEAD Handle:
2007083111123104
Modified files:
openssl/crypto/md2 md2_dgst.c
openssl/crypto/seed seed.c
Log:
Constify seed and md2.
Summary:
Revision Changes Path
1.19 +1 -1 openssl/crypto/md2/md2_dgst.c
1.2 +1 -1 openssl/crypto/seed/seed.c
____________________________________________________________
________________
patch -p0 <<' .'
Index: openssl/crypto/md2/md2_dgst.c
============================================================
================
$ cvs diff -u -r1.18 -r1.19 md2_dgst.c
--- openssl/crypto/md2/md2_dgst.c 21 Jan 2007 13:07:10
-0000 1.18
+++ openssl/crypto/md2/md2_dgst.c 31 Aug 2007 10:12:35
-0000 1.19
 -73,7 +73,7 
static void md2_block(MD2_CTX *c, const unsigned char
*d);
/* The magic S table - I have converted it to hex since
it is
* basically just a random byte string. */
-static MD2_INT S[256]={
+static const MD2_INT S[256]={
0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01,
0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13,
0x62, 0xA7, 0x05, 0xF3, 0xC0, 0xC7, 0x73, 0x8C,
 .
patch -p0 <<' .'
Index: openssl/crypto/seed/seed.c
============================================================
================
$ cvs diff -u -r1.1 -r1.2 seed.c
--- openssl/crypto/seed/seed.c 23 Apr 2007 23:48:41
-0000 1.1
+++ openssl/crypto/seed/seed.c 31 Aug 2007 10:12:31
-0000 1.2
 -35,7 +35,7 
#include <openssl/seed.h>
#include "seed_locl.h"
-static seed_word SS[4][256] = { {
+static const seed_word SS[4][256] = { {
0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0,
0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124,
0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c,
0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360,
0x28082028, 0x04444044, 0x20002020, 0x1d8d919c,
0x20c0e0e0, 0x22c2e2e0, 0x08c8c0c8, 0x17071314,
 .
____________________________________________________________
__________
OpenSSL Project http://www.openssl.org
CVS Repository Commit List
openssl-cvs openssl.org
Automated List Manager
majordomo openssl.org
|