On Wed, Apr 25, 2001 at 02:58:10PM -0400, Monique Mandala wrote:
> It also seems like the function is working, but I don't see output? Does it
> write to the BIO structure or the monitor? If the BIO, what api do I use to
> write to a file or monitor?
>
> What is the difference between the two functions that initialize
> "bio_s_out"?
>
> Here is the relevant section of my code:
> //Load callback function for error tracing.
> BIO_set_callback(SSL_get_rbio(ssl),bio_dump_cb);
> BIO* bio_s_out = NULL;
> //bio_s_out=BIO_new_fp(stdout,BIO_NOCLOSE);
This call (would) initialize bio_s_out to point to stdout of the program.
If this is a daemon started from inetd, stdout is the network channel
(-> the output is sent to the peer and will interfere with the normal
SSL connection, causing a failure.)
> bio_s_out=BIO_new(BIO_s_null());
BIO_s_null() is the equivalent to /dev/null, all output is simply discarded
and sent nowhere.
Best regards,
Lutz
--
Lutz Jaenicke [EMAIL PROTECTED]
BTU Cottbus http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]