[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Fetch socket error/SSL error in error_cb ?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Fetch socket error/SSL error in error_cb ?
- From: Jeffrey Walton <noloader@xxxxxxxxx>
- Date: Mon, 3 Mar 2014 00:02:51 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 03 Mar 2014 00:02:56 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=S9p7lS6x1tKtxFu9kQ9YCaKmdw+3Q0eJcmM6tVQRs90=; b=QWJAACR3WEkRnOd4NFWY0815xH35jCd0BcKSM2YaYDqCR0kooMex7QGZxo07ADePW8 OXtnbdCjZ6tiSW+GOgWW8PPsrl2WY/odlul8Yyc3OHDGYb3Ck1IU5sbLsrip+a6g2T/l Qnm+t+YSrxwpmupI8y43J1tCqpj+raC5am1UHjJjXTc7CCypypx9KlKSGRkV32ocQMif sQvSI6Ro5rSD6vK0/6iL8qj0es6+dbfKkxijeEYdbyd/nzLAfc+8hXZCASFVlOczfzVD +AtvekDqJ4g8GEWpWebLVVX+bKgbToi2cFufhORfW0H08ljCcdtGrEkBpCq67OaPCNRm 0asA==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
I'm working on a libevent-based server. The server is working great
with RSA-based certs. But something is blowing up with ECDSA-based
certs. OpenSSL's s_client is dying with:
My accept_cb performs the following:
bufferevent* bin = NULL;
bin = bufferevent_openssl_socket_new(base, fd, ssl,
BUFFEREVENT_SSL_ACCEPTING,
BEV_OPT_CLOSE_ON_FREE | BEV_OPT_DEFER_CALLBACKS);
bufferevent_setcb(bin, proxy_server_read_cb, NULL, error_cb, NULL);
bufferevent_enable(bin, EV_READ);
When things blow up on accept(), I land here:
void error_cb(struct bufferevent *bev, short what, void *arg)
{
LogDebug("error_cb (bufferevent)");
if (what & (BEV_EVENT_EOF | BEV_EVENT_ERROR))
{
...
bufferevent_free(bev);
}
}
befferevent.h mentions SSL a few times, but there does not appear to
be a function retrieve the SSL object (unless I'm mis-reading the
header).
How do I access the SSL object associated with the bufferevent bev?
Thanks in advance.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.