Differences From Artifact [d840c2c357]:
- File build/chrome/cackey-chrome-pkcs11.c — part of check-in [64c4c68fa6] at 2016-03-09 04:30:30 on branch trunk — ChromeOS: Added support for listing smartcard readers (user: rkeene, size: 15977) [annotate] [blame] [check-ins using]
To Artifact [8bb129b692]:
- File build/chrome/cackey-chrome-pkcs11.c — part of check-in [0c7c510048] at 2017-07-17 13:56:51 on branch trunk — Updated to treat returning a zero-length signed message as an error (user: rkeene, size: 16061) [annotate] [blame] [check-ins using]
| ︙ | |||
600 601 602 603 604 605 606 607 608 609 610 611 612 613 | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | + + + + + |
chk_rv = moduleFunctionList->C_SignInit(hSession, &signMechanism, hKey);
if (chk_rv != CKR_OK) {
break;
}
tmpDestinationLength = *destinationLength;
chk_rv = moduleFunctionList->C_Sign(hSession, data, dataLength, destination, &tmpDestinationLength);
if (tmpDestinationLength == 0) {
chk_rv = CKR_GENERAL_ERROR;
}
switch (chk_rv) {
case CKR_OK:
*destinationLength = tmpDestinationLength;
retval = CACKEY_CHROME_OK;
break;
case CKR_USER_NOT_LOGGED_IN:
retval = CACKEY_CHROME_NEEDLOGIN;
|
| ︙ |