Check-in [85feb752e1]
Overview
Comment:Updated to correctly handle condition where pSignature is NULL in C_Sign()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:85feb752e10ced2b8e7324eb99e6db352ce4711e
User & Date: rkeene on 2010-06-07 17:35:28
Other Links: manifest | tags
Context
2010-06-07
17:37
CACKey 0.5.12 check-in: 82a12f1ab0 user: rkeene tags: trunk, 0.5.12
17:35
Updated to correctly handle condition where pSignature is NULL in C_Sign() check-in: 85feb752e1 user: rkeene tags: trunk
08:40
Added a test program to configure script check-in: 8c2970ff5d user: rkeene tags: trunk
Changes

Modified cackey.c from [c16f533241] to [b61b0b2a2f].

  5178   5178   			cackey_sessions[hSession].sign_bufused = start_sign_bufused;
  5179   5179   
  5180   5180   			return(sign_ret);
  5181   5181   		}
  5182   5182   
  5183   5183   		CACKEY_DEBUG_PRINTF("Error.  SignFinal() returned failure (rv = %lu).", (unsigned long) sign_ret);
  5184   5184   
         5185  +		return(sign_ret);
         5186  +	}
         5187  +
         5188  +	if (pSignature == NULL) {
         5189  +		CACKEY_DEBUG_PRINTF("pSignature specified as NULL, undoing C_SignUpdate()", (unsigned long) sign_ret);
         5190  +
         5191  +		cackey_sessions[hSession].sign_bufused = start_sign_bufused;
         5192  +
  5185   5193   		return(sign_ret);
  5186   5194   	}
  5187   5195   
  5188   5196   	CACKEY_DEBUG_PRINTF("Returning CKR_OK (%i)", CKR_OK);
  5189   5197   
  5190   5198   	return(CKR_OK);
  5191   5199   }