On Fri, 24 Apr 1998, Holger Reif wrote:
> > I'm writing an application which uses the BIO stuff, because
> > i need non-blocking support. I knew there are serveral comments
> > on that topic, but i have problems to get a fd out of the bio
> > structure.(i need it for select()) The macro BIO_get_fd returns 0,
> > even if the TCP/IP connection is established and BIO_do_handshake()
> > returns >0.
>
> As I already wrote you in private mail some days ago: You can't get
> a file descriptor out of a ssl-bio. The reason ist to be found in
> file ssl/bio_ssl.c and function ssl_ctrl().
>
> The cmd BIO_C_GET_FD has no defined action. That causes the function
> to return the default value of 0.
I'm not quite sure when I changed that, but as of 0.9.0,
I split out most of the BIO_C_ type commands into BIO specific lables, and
in the case of the SSL bio, it is now a case of
default:
ret=BIO_ctrl(ssl->rbio,cmd,num,ptr);
break;
so it does chain to the underlying BIO. Basically, the request chain down
until someone handles the request.
eric
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+