Title: Message
Hi,
 
I actually use RAND_write_file() each time I close my SSL connection. Then next time I initiate a connection I call this function :
 
static void SSL_SeedPrng()
{
 char szRndFile[256];
 
 if (!RAND_status())
  {
  /* If RAND_poll() called by RAND_status() is not sufficiant to initialize the SSL PRNG,
     load the file to add entropy */
  strcpy(szRndFile, g_szSSLCertFolder);
  strcat(szRndFile, g_szRndFile);
  if (RAND_load_file(szRndFile, -1) <= 0)
   m_cCrd=CRD_ERR_SSL_RANDOM;
  }
}
Marc.
 
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 2 juillet 2004 18:31
À : [EMAIL PROTECTED]
Objet : RAND_write_file() - do you use it?

Hi: does anyone have some real world examples -- that is, scenarios -- of the use of RAND_write_file? Have you used this in commercial applications? I'd like to hear some of these things:

- why use RAND_write_file?
- when, how often?
- other usage notes.
Thanks for any advice. 
 
Dave McLellan --Consulting Software Engineer - SPEA Engineering
EMC Corporation
228 South St. Mail Stop: 228 LL/AA-24
Hopkinton, MA 01748 USA
+1-508-249-1257 F: +1-508-497-8030 [EMAIL PROTECTED]

Reply via email to