List Info

Thread: OpenSSL: OpenSSL_0_9_8-stable: openssl/crypto/rand/ rand_lib.c




OpenSSL: OpenSSL_0_9_8-stable: openssl/crypto/rand/ rand_lib.c
country flaguser name
Germany
2007-09-19 08:29:05
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Dr.
Stephen Henson
  Root:   /v/openssl/cvs                   Email:  steveopenssl.org
  Module: openssl                          Date:  
19-Sep-2007 15:29:05
  Branch: OpenSSL_0_9_8-stable             Handle:
2007091914290500

  Modified files:           (Branch: OpenSSL_0_9_8-stable)
    openssl/crypto/rand     rand_lib.c

  Log:
    Wrap "keep valgrind happy" change in #ifdef
PEDANTIC so any entropy in the
    buffer can be normally used.

  Summary:
    Revision    Changes     Path
    1.16.2.2    +4  -0      openssl/crypto/rand/rand_lib.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/rand/rand_lib.c
 
============================================================
================
  $ cvs diff -u -r1.16.2.1 -r1.16.2.2 rand_lib.c
  --- openssl/crypto/rand/rand_lib.c	2 Mar 2007 17:54:31
-0000	1.16.2.1
  +++ openssl/crypto/rand/rand_lib.c	19 Sep 2007 13:29:05
-0000	1.16.2.2
   -154,7 +154,9 
   int RAND_bytes(unsigned char *buf, int num)
   	{
   	const RAND_METHOD *meth = RAND_get_rand_method();
  +#ifdef PEDANTIC
   	memset(buf, 0, num);
  +#endif
   	if (meth && meth->bytes)
   		return meth->bytes(buf,num);
   	return(-1);
   -163,7 +165,9 
   int RAND_pseudo_bytes(unsigned char *buf, int num)
   	{
   	const RAND_METHOD *meth = RAND_get_rand_method();
  +#ifdef PEDANTIC
   	memset(buf, 0, num);
  +#endif
   	if (meth && meth->pseudorand)
   		return meth->pseudorand(buf,num);
   	return(-1);
   .
____________________________________________________________
__________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                    
openssl-cvsopenssl.org
Automated List Manager                          
majordomoopenssl.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )