auth_pubkry callback is only getting called with signature_state == SSH_PUBLICKEY_STATE_NONE

2017-10-12 Thread Eric Bentley
… int auth_publickey(ssh_session session, const char *user, struct ssh_key_struct *pubkey, char signature_state, void *userdata) { struct AUTH_DATA *auth_data = (struct

Re: callback userdata in multithreaded apps

2017-10-12 Thread e...@bentleyemail.net
i solved the issue by using a mutex. Set before bind accept and release after auth success/fail. Perhaps not the most efficient but its gets me moving again. -Eric > On Oct 12, 2017, at 2:17 PM, Eric Bentley wrote: > > I’m looking at the examples/samplesshd-cb.c >

callback userdata in multithreaded apps

2017-10-12 Thread Eric Bentley
I’m looking at the examples/samplesshd-cb.c (https://git.libssh.org/projects/libssh.git/tree/examples/samplesshd-cb.c ) example and am trying to use it as a model for a multithread version that would be able to accept

Re: [PATCH 0/4] chachapoly: chacha20-poly1...@openssh.com support

2017-10-12 Thread Andreas Schneider
On Thursday, 12 October 2017 11:15:59 CEST Meng Hourk Tan wrote: > Hi Andreas, > > I'm sorry I wasn't aware of this branch. > > I was only working with git://git.libssh.org/projects/libssh.git > > I should have ask first before trying to implement it. > > Will it be merge to the master of the

RE: [PATCH 0/4] chachapoly: chacha20-poly1...@openssh.com support

2017-10-12 Thread Meng Hourk Tan
Hi Andreas, I'm sorry I wasn't aware of this branch. I was only working with git://git.libssh.org/projects/libssh.git I should have ask first before trying to implement it. Will it be merge to the master of the main repository ? Regards, Meng De : Andreas

Re: [PATCH 0/4] chachapoly: chacha20-poly1...@openssh.com support

2017-10-12 Thread Andreas Schneider
On Monday, 18 September 2017 11:47:33 CEST Meng Hourk Tan wrote: > Here is a patch to support chacha20-poly1...@openssh.com in libssh. > First commit changes some cipher structures needed to prepare the field. > Then I tried to the least possible changes in sending and receiving packet > functions