List Info

Thread: OpenSSL: openssl/crypto/ts/ ts_rsp_sign.c




OpenSSL: openssl/crypto/ts/ ts_rsp_sign.c
user name
2006-03-19 21:09:48
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Nils
Larsch
  Root:   /v/openssl/cvs                   Email:  nilsopenssl.org
  Module: openssl                          Date:  
19-Mar-2006 22:09:48
  Branch: HEAD                             Handle:
2006031921094800

  Modified files:
    openssl/crypto/ts       ts_rsp_sign.c

  Log:
    fix last commit: return NULL is
TS_RESP_CTX_set_status_info_cond()
    failed

  Summary:
    Revision    Changes     Path
    1.6         +3  -9      openssl/crypto/ts/ts_rsp_sign.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/ts/ts_rsp_sign.c
 
============================================================
================
  $ cvs diff -u -r1.5 -r1.6 ts_rsp_sign.c
  --- openssl/crypto/ts/ts_rsp_sign.c	18 Mar 2006 14:27:41
-0000	1.5
  +++ openssl/crypto/ts/ts_rsp_sign.c	19 Mar 2006 21:09:48
-0000	1.6
   -466,18 +466,12 
   	if (!result)
   		{
   		TSerr(TS_F_TS_RESP_CREATE_RESPONSE,
TS_R_RESPONSE_SETUP_ERROR);
  -		if (ctx != NULL)
  +		if (ctx->response != NULL)
   			{
  -			TS_RESP_CTX_set_status_info_cond(ctx,
  +			if (TS_RESP_CTX_set_status_info_cond(ctx,
   				TS_STATUS_REJECTION, "Error during response
"
  -				"generation.");
  -			/* Check if the status info was set. */
  -			if (ctx->response && ASN1_INTEGER_get(
  -			   
TS_RESP_get_status_info(ctx->response)->status)
  -			    == TS_STATUS_GRANTED)
  +				"generation.") == 0)
   				{
  -				/* Status info wasn't set, don't
  -				 * return a response. */
   				TS_RESP_free(ctx->response);
   				ctx->response = NULL;
   				}
   .
____________________________________________________________
__________
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 )