Re: "PRNG_NOT_SEEDED", Even after calling RAND_add() in client

2003-03-18 Thread Brian Hatch
> Thanks for your response. > Here is how i use RAND_seed in my client : > > while (RAND_status() == 0) { > int rnd = rand(); > RAND_seed(&rnd, sizeof(rnd)); > } Ungh. Now you're seeding your random number generator with... a random number generator. And I bet you never called sr

Re: "PRNG_NOT_SEEDED", Even after calling RAND_add() in client

2003-03-18 Thread rajagopalan ramanujam
hi brian, Thanks for your response. Here is how i use RAND_seed in my client : while (RAND_status() == 0) { int rnd = rand(); RAND_seed(&rnd, sizeof(rnd)); } Now Serverhello and certificate is accepted but when the client tries to generate a RSA key, the control does not seem to be

Re: "PRNG_NOT_SEEDED", Even after calling RAND_add() in client

2003-03-17 Thread Brian Hatch
> I get a PRNG_NOT_SEEDED error even after i call > RAND_add() function. I am calling the function at the > begining before SSL initialization. ... > unsigned long Time=time(NULL); > > RAND_add(&Time,sizeof(Time),0); You should call RAND_status which returns true/false to tell you if you

"PRNG_NOT_SEEDED", Even after calling RAND_add() in client

2003-03-17 Thread rajagopalan ramanujam
hi, I get a PRNG_NOT_SEEDED error even after i call RAND_add() function. I am calling the function at the begining before SSL initialization. Here is my sample client running on embedded board (ThreadX os). void ssl_client (void) { int err; int sd; struct sockaddr_in sa; SSL_CTX* ctx;