Fix bug # 53221: Call RNG_SystemInfoForRNG to provide RNG with enough

entropy for proper operation.
This commit is contained in:
chrisk%netscape.com 2000-09-19 19:34:46 +00:00
Родитель 84aaf71477
Коммит d3fb620cd1
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -34,7 +34,7 @@
/*
* cmsutil -- A command to work with CMS data
*
* $Id: cmsutil.c,v 1.5 2000-06-23 16:40:30 chrisk%netscape.com Exp $
* $Id: cmsutil.c,v 1.6 2000-09-19 19:34:46 chrisk%netscape.com Exp $
*/
#include "nspr.h"
@ -836,7 +836,8 @@ main(int argc, char **argv)
/* Call the libsec initialization routines */
PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
SECU_PKCS11Init(PR_FALSE);
SEC_Init();
RNG_SystemInfoForRNG(); /* SECU_PKCS11Init does not call this */
SEC_Init(); /* this does nothing, actually */
/* open cert database */
options.certHandle = OpenCertDB(progName);