|
Lines 389-395
process_sign_request2(SocketEntry *e)
Link Here
|
| 389 |
if (flags & SSH_AGENT_OLD_SIGNATURE) |
389 |
if (flags & SSH_AGENT_OLD_SIGNATURE) |
| 390 |
compat = SSH_BUG_SIGBLOB; |
390 |
compat = SSH_BUG_SIGBLOB; |
| 391 |
if ((r = sshkey_from_blob(blob, blen, &key)) != 0) { |
391 |
if ((r = sshkey_from_blob(blob, blen, &key)) != 0) { |
| 392 |
error("%s: cannot parse key blob: %s", __func__, ssh_err(ok)); |
392 |
error("%s: cannot parse key blob: %s", __func__, ssh_err(r)); |
| 393 |
goto send; |
393 |
goto send; |
| 394 |
} |
394 |
} |
| 395 |
if ((id = lookup_identity(key, 2)) == NULL) { |
395 |
if ((id = lookup_identity(key, 2)) == NULL) { |
|
Lines 402-408
process_sign_request2(SocketEntry *e)
Link Here
|
| 402 |
} |
402 |
} |
| 403 |
if ((r = sshkey_sign(id->key, &signature, &slen, |
403 |
if ((r = sshkey_sign(id->key, &signature, &slen, |
| 404 |
data, dlen, compat)) != 0) { |
404 |
data, dlen, compat)) != 0) { |
| 405 |
error("%s: sshkey_sign: %s", __func__, ssh_err(ok)); |
405 |
error("%s: sshkey_sign: %s", __func__, ssh_err(r)); |
| 406 |
goto send; |
406 |
goto send; |
| 407 |
} |
407 |
} |
| 408 |
/* Success */ |
408 |
/* Success */ |