When I had the same problem in Win95 with PKCS7 routines I put:

static const char rnd_seed[ ] = "string to make the random number generator
think it has entropy";

as a global variable, then called

RAND_seed(rnd_seed, sizeof rnd_seed);

just after my OpenSSL_add_all_algorithms() routine, and it worked.
I have seen this in ssltest.c example
There is a better way to do it in app_rand.c, I think.




-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: martes 4 de abril de 2000 19:03
Subject: "PRNG not seeded" in Window NT


>When I try to use "SSL_connect", I get also the error message "PRNG not
>seeded".  I have read the old messages about the problem. But it seems that
>all the messages are about Unix/Linux, but not Windows.
>Someone said that with RAND_egd() can solve the problem. I have checked the
>code and find the following code in rand_egd.c:
>#if defined(WIN32) || defined(VMS) || defined(__VMS)
>int RAND_egd(const char *path)
> {
> return(-1);
> }
>#else
>...
>What can I do in Windows NT?
>
>Thanx
>
>
>
>Fred
>
>
>______________________________________________________________________
>OpenSSL Project                                 http://www.openssl.org
>Development Mailing List                       [EMAIL PROTECTED]
>Automated List Manager                           [EMAIL PROTECTED]
>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to