In message <[EMAIL PROTECTED]> on Wed, 30 Mar 2005 16:51:37 -0800, David Brock 
<[EMAIL PROTECTED]> said:

dbrock-openssl> I'm fairly new to openSSL so forgive me if this is a
dbrock-openssl> silly question. Is it possible to create a Unix Domain
dbrock-openssl> Socket and then attach it to a BIO (using BIO_set_fd)?
dbrock-openssl> I have tried to do it (for a server), but I keep
dbrock-openssl> getting a failure when I call BIO_do_accept(). Is
dbrock-openssl> there something I am missing, or can I only use
dbrock-openssl> AF_INET sockets with BIOs?

What kind of source/sink BIO did you use?  BIO_do_accept() is hardly
relevant for all of them.  As far as I can tell (I've never done this
kind of operation myself), you need to create your BIO like this:

        bio = BIO_new(BIO_s_accept());

When you've done that, you can do your BIO_set_fd() and
BIO_do_accept().

If this is what you've done, you may have found a bug.  How about you
tell us exactly how it fails (give us a log, baasically), and perhaps
share a snippet of code that demonstrates the error?

Cheers,
Richard

-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.

-- 
Richard Levitte                         [EMAIL PROTECTED]
                                        http://richard.levitte.org/

"When I became a man I put away childish things, including
 the fear of childishness and the desire to be very grown up."
                                                -- C.S. Lewis
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to