>#include <stdio.h>
>#include "openssl/bio.h"
>int main ()
>{
> BIO *bio_out;
> bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);
> BIO_printf(bio_out, "Hello World\n");
>
> getchar();
>
> return(0);
>}
>The code was compiled successfully.
>When the code went to "BIO_printf(bio_out, "Hello World\n");", it stoped
>and exited without any error information.
>Could you tell me why? Does my program need further configurations?
I'll try to be kind. The problem is that you never asked it to do
anything.
You created a BIO attached to 'stdout', you put some bytes in the BIO (which
is a buffer), then you waited for a character, and then you terminated your
program (destroying the BIO without giving it any chance to write to
stdout).
DS
--- But I also tried the same program (on Redhat Linux though) and it
printed "Hello World" on the terminal. Am I making any mistake here? I ask
this since you say that "destroying the BIO without giving it any chance to
write to stdout", but it wrote to stdout in my case.
Please be kind to me also.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Pvt. Ltd. does not accept any liability for virus infected mails.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]