Hi

I want to obtain the errors that I have, and I use the function
ERR_print_errors_fp().
But , this give a empty file. And I have errors ...

My code:

ERR_load_crypto_strings();

fp = fopen(fileError, "w");
ERR_print_errors_fp(fp);
fclose(fp);




Have you tried to direct the errors to "stderr"? using:
ERR_print_errors_fp (stderr);

Do you do multiple "fopen ... fclose" in your code?
Then you should use
fp = fopen(fileError,"a");
as the "w" option overwrites the file contents.
So may be your last write contained no errors.

I hope this helps.

Andreas
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to