Fix problem with DSA keys using pam_ssh_agent_auth (#1251777)

This commit is contained in:
Jakub Jelen 2015-08-17 16:27:38 +02:00
parent 23f2b8953b
commit 8cbf67daf2
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ diff -up openssh-6.8p1/pam_ssh_agent_auth-0.9.3/userauth_pubkey_from_id.c.psaa-a
buffer_put_string(&b, pkblob, blen);
- if(ssh_agent_sign(id->ac, id->key, &sig, &slen, buffer_ptr(&b), buffer_len(&b)) != 0)
+ if(ssh_agent_sign(id->ac->fd, id->key, &sig, &slen, buffer_ptr(&b), buffer_len(&b), 1) != 0)
+ if(ssh_agent_sign(id->ac->fd, id->key, &sig, &slen, buffer_ptr(&b), buffer_len(&b), 0) != 0)
goto user_auth_clean_exit;
/* test for correct signature */