I changed it to BUFFEREVENT_SSL_ACCEPTING. The read/write callbacks are
still not invoked.

Is there an example SSL server anywhere?

On Wed, Feb 2, 2011 at 12:44 PM, Nick Mathewson <[email protected]> wrote:

> On Wed, Feb 2, 2011 at 2:27 PM, Wayne Shao <[email protected]> wrote:
> > Hi,
> > I tried to setup an SSL server with libevent. But the read/write
> callbacks
> > are not invoked after the handshake phase.
> > Please see the code below.
> > Thanks,
> > W Shao
>
> I think the problem is using BUFFEREVENT_SSL_OPEN.  When you get the
> connection,  it *isn't* an open SSL connection, so you need to pass in
> BUFFEREVENT_SSL_ACCEPTING.
> ***********************************************************************
> To unsubscribe, send an e-mail to [email protected] with
> unsubscribe libevent-users    in the body.
>



-- 
W. Shao

Reply via email to