List Info

Thread: OpenSSL: openssl/crypto/asn1/ t_x509.c




OpenSSL: openssl/crypto/asn1/ t_x509.c
country flaguser name
Germany
2007-12-29 12:32:34
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Andy
Polyakov
  Root:   /v/openssl/cvs                   Email:  approopenssl.org
  Module: openssl                          Date:  
29-Dec-2007 19:32:34
  Branch: HEAD                             Handle:
2007122918323400

  Modified files:
    openssl/crypto/asn1     t_x509.c

  Log:
    Source readability fix, which incidentally works around
XLC compiler
    bug.

  Summary:
    Revision    Changes     Path
    1.41        +4  -5      openssl/crypto/asn1/t_x509.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/asn1/t_x509.c
 
============================================================
================
  $ cvs diff -u -r1.40 -r1.41 t_x509.c
  --- openssl/crypto/asn1/t_x509.c	10 Feb 2007 09:45:07
-0000	1.40
  +++ openssl/crypto/asn1/t_x509.c	29 Dec 2007 18:32:34
-0000	1.41
   -437,13 +437,13 
   
   	l=80-2-obase;
   
  -	b=s=X509_NAME_oneline(name,NULL,0);
  -	if (!*s)
  +	b=X509_NAME_oneline(name,NULL,0);
  +	if (!*b)
   		{
   		OPENSSL_free(b);
   		return 1;
   		}
  -	s++; /* skip the first slash */
  +	s=b+1; /* skip the first slash */
   
   	c=s;
   	for (;;)
   -468,8 +468,7 
   			{
   			i=s-c;
   			if (BIO_write(bp,c,i) != i) goto err;
  -			c+=i;
  -			c++;
  +			c=s+1;	/* skip following slash */
   			if (*s != '')
   				{
   				if (BIO_write(bp,", ",2) != 2) goto err;
   .
____________________________________________________________
__________
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 )