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

Diff for /src/usr.bin/ssh/ssh-pkcs11-helper.c between version 1.17 and 1.18

version 1.17, 2019/01/23 02:01:10 version 1.18, 2019/05/16 08:47:27
Line 188 
Line 188 
         else {          else {
                 if ((found = lookup_key(key)) != NULL) {                  if ((found = lookup_key(key)) != NULL) {
 #ifdef WITH_OPENSSL  #ifdef WITH_OPENSSL
                         u_int xslen;  
                         int ret;                          int ret;
   
                         if (key->type == KEY_RSA) {                          if (key->type == KEY_RSA) {
Line 201 
Line 200 
                                         ok = 0;                                          ok = 0;
                                 }                                  }
                         } else if (key->type == KEY_ECDSA) {                          } else if (key->type == KEY_ECDSA) {
                                 xslen = ECDSA_size(key->ecdsa);                                  u_int xslen = ECDSA_size(key->ecdsa);
   
                                 signature = xmalloc(xslen);                                  signature = xmalloc(xslen);
                                 /* "The parameter type is ignored." */                                  /* "The parameter type is ignored." */
                                 ret = ECDSA_sign(-1, data, dlen, signature,                                  ret = ECDSA_sign(-1, data, dlen, signature,

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18