Diff

Differences From Artifact [d840c2c357]:

To Artifact [8bb129b692]:


   600    600   						chk_rv = moduleFunctionList->C_SignInit(hSession, &signMechanism, hKey);
   601    601   						if (chk_rv != CKR_OK) {
   602    602   							break;
   603    603   						}
   604    604   
   605    605   						tmpDestinationLength = *destinationLength;
   606    606   						chk_rv = moduleFunctionList->C_Sign(hSession, data, dataLength, destination, &tmpDestinationLength);
          607  +
          608  +						if (tmpDestinationLength == 0) {
          609  +							chk_rv = CKR_GENERAL_ERROR;
          610  +						}
          611  +
   607    612   						switch (chk_rv) {
   608    613   							case CKR_OK:
   609    614   								*destinationLength = tmpDestinationLength;
   610    615   								retval = CACKEY_CHROME_OK;
   611    616   								break;
   612    617   							case CKR_USER_NOT_LOGGED_IN:
   613    618   								retval = CACKEY_CHROME_NEEDLOGIN;