Re: need help on SSL_accept

2002-09-06 Thread Pierre Chifflier
I have found ! I explain what's wrong (exactly, what i've understood ;) if someone have the same pb It was used in a FTP server application, for the data connection. Due to a (stupid) error, the message '150 about to open data connection' was sent AFTER SSL_accept was called. In fact the s

Re: need help on SSL_accept

2002-09-06 Thread Lutz Jaenicke
On Thu, Sep 05, 2002 at 10:57:59PM +0200, Pierre Chifflier wrote: > SSL_ERROR_WANT_READ, I must iterate on SSL_accept. I've done the following: > > 8< > SSL_set_accept_state(ssl); > fd = SSL_get_fd(ssl); > fcntl(fd,F_SETFL,(fcntl(fd,F_GETFL)|O_NONBLOCK)); >