Check-in [66ea8c8073]
Overview
Comment:Fixed issue with C_GetMechanismList reporting wrong number of mechanisms when asked
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:66ea8c8073607ef5c211e42747ad2e4ea62e7ca1
User & Date: rkeene on 2012-04-21 01:13:13
Other Links: manifest | tags
Context
2012-04-21
01:14
Fixed issue with C_GetMechanismList rejecting valid buffer sizes check-in: dbd79de227 user: rkeene tags: trunk
01:13
Fixed issue with C_GetMechanismList reporting wrong number of mechanisms when asked check-in: 66ea8c8073 user: rkeene tags: trunk
2012-02-12
06:26
Stopped reporting CKM_SHA1_RSA_PKCS as a supported mechanism -- it was never actually supported check-in: b673394c9a user: rkeene tags: trunk
Changes

Modified cackey.c from [498d154f21] to [0c1884cff7].

  3842   3842   	if (pulCount == NULL) {
  3843   3843   		CACKEY_DEBUG_PRINTF("Error.  pulCount is NULL.");
  3844   3844   
  3845   3845   		return(CKR_ARGUMENTS_BAD);
  3846   3846   	}
  3847   3847   
  3848   3848   	if (pMechanismList == NULL) {
  3849         -		*pulCount = 2;
         3849  +		*pulCount = 1;
  3850   3850   
  3851   3851   		CACKEY_DEBUG_PRINTF("Returning CKR_OK (%i)", CKR_OK);
  3852   3852   
  3853   3853   		return(CKR_OK);
  3854   3854   	}
  3855   3855   
  3856   3856   	if (*pulCount < 2) {