[BACK]Return to ssh-pkcs11.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh-pkcs11.c between version 1.5 and 1.6

version 1.5, 2010/04/15 20:32:55 version 1.6, 2010/06/08 21:32:19
Line 418 
Line 418 
                         error("C_GetAttributeValue failed: %lu", rv);                          error("C_GetAttributeValue failed: %lu", rv);
                         continue;                          continue;
                 }                  }
                 /* allocate buffers for attributes, XXX check ulValueLen? */                  /* check that none of the attributes are zero length */
                   if (attribs[0].ulValueLen == 0 ||
                       attribs[1].ulValueLen == 0 ||
                       attribs[2].ulValueLen == 0) {
                           continue;
                   }
                   /* allocate buffers for attributes */
                 for (i = 0; i < 3; i++)                  for (i = 0; i < 3; i++)
                         attribs[i].pValue = xmalloc(attribs[i].ulValueLen);                          attribs[i].pValue = xmalloc(attribs[i].ulValueLen);
                 /* retrieve ID, modulus and public exponent of RSA key */                  /* retrieve ID, modulus and public exponent of RSA key */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6