diff options
author | nicolson%netscape.com <devnull@localhost> | 2001-06-12 22:25:13 +0000 |
---|---|---|
committer | nicolson%netscape.com <devnull@localhost> | 2001-06-12 22:25:13 +0000 |
commit | a9b9eda208a4673bfa07fb2dc542ad0732716462 (patch) | |
tree | fb7cb7a4f64f8d668cccc6d9ebb03578142620b1 /security/nss/lib/nss/nssinit.c | |
parent | bf93a3fc6788184f49d0e6883aee439baee7928d (diff) | |
download | nss-hg-a9b9eda208a4673bfa07fb2dc542ad0732716462.tar.gz |
Make NSS_Init* idempotent.
Move new symbols to NSS 3.3 section of nss.def.
Diffstat (limited to 'security/nss/lib/nss/nssinit.c')
-rw-r--r-- | security/nss/lib/nss/nssinit.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/security/nss/lib/nss/nssinit.c b/security/nss/lib/nss/nssinit.c index 2cd4988a0..27b51ff18 100644 --- a/security/nss/lib/nss/nssinit.c +++ b/security/nss/lib/nss/nssinit.c @@ -240,6 +240,10 @@ nss_Init(const char *configdir, const char *certPrefix, const char *keyPrefix, SECStatus status; SECStatus rv = SECFailure; + if( isInitialized ) { + return SECSuccess; + } + status = RNG_RNGInit(); /* initialize random number generator */ if (status != SECSuccess) goto loser; @@ -304,12 +308,6 @@ NSS_InitReadWrite(const char *configdir) PR_FALSE, PR_FALSE, PR_FALSE); } -PRBool -NSS_IsInitialized() -{ - return isInitialized; -} - /* * OK there are now lots of options here, lets go through them all: * |