hi everyone,
had a couple of problems with 0.9.5 under
Win98SE+VC6.0sp3+MASM/WinNT4sp5+VC6.0sp3+MASM:
i) "openssl speed dsa" hangs
Reason: BN_rand() fails with PRNG not seeded
this happens inside DSA_generate_key(), which does not expect
BN_rand() to fail.
(see attached patch to crypto/dsa/dsa_key.c and apps/speed.c)
(there may be other BN_rand()-behaviour change problems)
ii) "openssl genrsa" complains that it failed to write the .rnd file
Reason: open(xx, O_CREAT | O_EXCL, 0600) fails, prolly
Microsoft-related reasons
(see attached patch to crypto/rand/randfile.c)
I think RAND_write_file() should do fopen() if open() fails....
tested ok RH-Linux 6.1/egcs-1.1.2
I'm not subscribed to any of the openssl-* lists, so please reply
directly.
Hope this helps,
Elias.
[EMAIL PROTECTED]
openssl-0.9.5-fix-ep104.patch