[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Fetch socket error/SSL error in error_cb ?



On Mon, Mar 3, 2014 at 12:02 AM, Jeffrey Walton <noloader@xxxxxxxxx> wrote:
>
> How do I access the SSL object associated with the bufferevent bev?

Here's the function you want:

/** Return the underlying openssl SSL * object for an SSL bufferevent. */
struct ssl_st *
bufferevent_openssl_get_ssl(struct bufferevent *bufev);


(It returns "struct ssl_st *" instead of "SSL *" so that it isn't
forced to pull in all the openssl headers, but don't worry: those are
actually the same type.)

best wishes,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.