[Olsr-cvs] olsrd-current/lib/secure/src md5.c, 1.2, 1.3 md5.h, 1.1, 1.2

Bernd Petrovitsch (spam-protected)
Tue Jan 30 18:11:55 CET 2007


Update of /cvsroot/olsrd/olsrd-current/lib/secure/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5024/lib/secure/src

Modified Files:
	md5.c md5.h 
Log Message:
* const'ified the two files to be able to remove warnings somewhere else

Index: md5.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/secure/src/md5.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** md5.c	5 Apr 2005 05:39:58 -0000	1.2
--- md5.c	30 Jan 2007 17:11:52 -0000	1.3
***************
*** 45,51 ****
  #define S44 21
  
! static void MD5Transform(UINT4 [4], unsigned char [64]);
  static void Encode(unsigned char *, UINT4 *, unsigned int);
! static void Decode(UINT4 *, unsigned char *, unsigned int);
  static void MD5_memcpy(POINTER, POINTER, unsigned int);
  static void MD5_memset(POINTER, int, unsigned int);
--- 45,51 ----
  #define S44 21
  
! static void MD5Transform(UINT4 [4], const unsigned char [64]);
  static void Encode(unsigned char *, UINT4 *, unsigned int);
! static void Decode(UINT4 *, const unsigned char *, const unsigned int);
  static void MD5_memcpy(POINTER, POINTER, unsigned int);
  static void MD5_memset(POINTER, int, unsigned int);
***************
*** 110,114 ****
       context.
   */
! void MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen)
  {
    unsigned int i, index, partLen;
--- 110,114 ----
       context.
   */
! void MD5Update (MD5_CTX *context, const unsigned char *input, const unsigned int inputLen)
  {
    unsigned int i, index, partLen;
***************
*** 176,180 ****
  /* MD5 basic transformation. Transforms state based on block.
   */
! static void MD5Transform (UINT4 state[4], unsigned char block[64])
  {
    UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
--- 176,180 ----
  /* MD5 basic transformation. Transforms state based on block.
   */
! static void MD5Transform (UINT4 state[4], const unsigned char block[64])
  {
    UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
***************
*** 282,286 ****
       a multiple of 4.
   */
! static void Decode (UINT4 *output, unsigned char *input, unsigned int len)
  {
    unsigned int i, j;
--- 282,286 ----
       a multiple of 4.
   */
! static void Decode (UINT4 *output, const unsigned char *input, const unsigned int len)
  {
    unsigned int i, j;

Index: md5.h
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/lib/secure/src/md5.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** md5.h	10 Mar 2005 19:57:48 -0000	1.1
--- md5.h	30 Jan 2007 17:11:52 -0000	1.2
***************
*** 42,46 ****
  
  void MD5Init(MD5_CTX *);
! void MD5Update(MD5_CTX *, unsigned char *, unsigned int);
  void MD5Final(unsigned char [16], MD5_CTX *);
  
--- 42,46 ----
  
  void MD5Init(MD5_CTX *);
! void MD5Update(MD5_CTX *, const unsigned char *, const unsigned int);
  void MD5Final(unsigned char [16], MD5_CTX *);
  





More information about the Olsr-cvs mailing list