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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.309 and 1.310

version 1.309, 2019/10/31 21:18:28 version 1.310, 2019/10/31 21:23:19
Line 1170 
Line 1170 
                 }                  }
                 sign_key = prv;                  sign_key = prv;
         }          }
           if ((r = sshkey_sign(sign_key, sigp, lenp, data, datalen,
         if (sshkey_type_plain(sign_key->type) == KEY_ECDSA_SK) {              alg, options.sk_provider, compat)) != 0) {
                 if (options.sk_provider == NULL) {  
                         /* Shouldn't happen here; checked in pubkey_prepare() */  
                         fatal("%s: missing SecurityKeyProvider", __func__);  
                 }  
                 if ((r = sshsk_ecdsa_sign(options.sk_provider, sign_key,  
                     sigp, lenp, data, datalen, compat)) != 0) {  
                         debug("%s: sshsk_ecdsa_sign: %s", __func__, ssh_err(r));  
                         goto out;  
                 }  
         } else if ((r = sshkey_sign(sign_key, sigp, lenp, data, datalen,  
             alg, compat)) != 0) {  
                 debug("%s: sshkey_sign: %s", __func__, ssh_err(r));                  debug("%s: sshkey_sign: %s", __func__, ssh_err(r));
                 goto out;                  goto out;
         }          }

Legend:
Removed from v.1.309  
changed lines
  Added in v.1.310