If you do not have already a big codebase, you could consider implementing the callback design as in samplesshd-cb.c. I will try to resolved the problems in samplesshd anyway.
Aris Le 15/07/13 14:39, [email protected] a écrit : > Yes, if I use samplesshd-tty.c it will act the same. > I gonna try to rewrite it from scratch. > > I'm using visual studio 10, openssl 1.0.1.e and zlib 1.2.8 if it's of any > help. > >> Message du 15/07/13 14:14 >> De : "Aris Adamantiadis" >> A : [email protected] >> Copie à : [email protected] >> Objet : Re: callbacks and ssh_handle_key_exchange() dead lock >> > >> Hi, >> >> If I understand well you can reproduce the problem with samplesshd-tty.c ? >> If not a minimalistic sample would be welcome. >> >> Thanks, >> >> Aris >> >> Le 15/07/13 13:53, [email protected] a écrit : >>> Hey, >>> >>> First thanks for all the work you put in this lib, it's great! >>> >>> I'm currently trying to build a server with it. >>> I want this server to handle ssh -D. >>> >>> Here is my problem: >>> >>> I'm trying with the last commit from Git but the program get stuck in >>> ssh_handle_key_exchange() here : >>> while (session->session_state != SSH_SESSION_STATE_ERROR && >>> session->session_state != SSH_SESSION_STATE_AUTHENTICATING && >>> session->session_state != SSH_SESSION_STATE_DISCONNECTED) { >>> /* >>> * loop until SSH_SESSION_STATE_BANNER_RECEIVED or >>> * SSH_SESSION_STATE_ERROR >>> */ >>> ssh_handle_packets(session,-1); >>> ssh_log(session,SSH_LOG_PACKET, "ssh_handle_key_exchange: Actual state : >>> %d", >>> session->session_state); >>> } >>> >>> The same main (based on samplesshd-tty.c) works fine with version 0.5.4, >>> but i'm unable to do anything with callbacks in this version. Was hoping to >>> get lucky with ssh_event. >>> >>> Thanks in advance, >>> >>> Anne >>> >>> Une messagerie gratuite, garantie à vie et des services en plus, ça vous >>> tente ? >>> Je crée ma boîte mail www.laposte.net >>> >> >> > > Une messagerie gratuite, garantie à vie et des services en plus, ça vous > tente ? > Je crée ma boîte mail www.laposte.net >
