Wu Zhigang wrote:
>
> Hi,
>
> I have tested CA programs like req, x509, ca and
> pkcs12, everthing seems fine even though I always get
> the following error message "fgets(tty): Invalid
> argument".
> But when I use pkcs12 program, I find the out file
> always empty (0 bytes), but if I run exit after
> pkcs12, the file content will be flushed into file,
> and the .p12 file can be imported to NS4.51 without
> problem.
> I have checked the pkcs12.c, the above problem is
> caused by without calling bio_free(out) at the end of
> program, this causes the content is not flushed into
> the file on win32 platform.
>
Thanks for the report. I'll check in a fix. This will only affect the
interactive mode: if you use 'openssl pkcs12' then it shouldn't happen.
I hardly ever use the interactive mode so I missed this.
When do you get the the "fgets(tty): Invalid argument" error? I've never
seen that myself: what Win32 OS are you using?
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]