List Info

Thread: OpenSSL: openssl/engines/ccgost/ gost_pmeth.c




OpenSSL: openssl/engines/ccgost/ gost_pmeth.c
country flaguser name
Germany
2007-05-31 07:32:29
  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:  
31-May-2007 14:32:28
  Branch: HEAD                             Handle:
2007053113322700

  Modified files:
    openssl/engines/ccgost  gost_pmeth.c

  Log:
    Fix for GOST engine on platforms where sizeof(size_t) !=
sizeof(int).

  Summary:
    Revision    Changes     Path
    1.8         +5  -1     
openssl/engines/ccgost/gost_pmeth.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/engines/ccgost/gost_pmeth.c
 
============================================================
================
  $ cvs diff -u -r1.7 -r1.8 gost_pmeth.c
  --- openssl/engines/ccgost/gost_pmeth.c	22 May 2007
12:58:39 -0000	1.7
  +++ openssl/engines/ccgost/gost_pmeth.c	31 May 2007
12:32:27 -0000	1.8
   -651,12 +651,16 
   
   static int pkey_gost_mac_signctx(EVP_PKEY_CTX *ctx,
unsigned char *sig, size_t *siglen, EVP_MD_CTX *mctx)
   	{
  +		unsigned int tmpsiglen=*siglen; /* for platforms where
sizeof(int)!=sizeof(size_t)*/
  +		int ret;
   		if (!sig) 
   			{
   			*siglen = 4;
   			return 1;
   			}
  -		return EVP_DigestFinal_ex(mctx,sig,siglen);
  +		ret=EVP_DigestFinal_ex(mctx,sig,&tmpsiglen);
  +		*siglen = tmpsiglen;
  +		return ret;
   	}
   /*
------------------------------------------------------------
----*/
   int register_pmeth_gost(int id, EVP_PKEY_METHOD
**pmeth,int flags)
   .
____________________________________________________________
__________
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 )