зеркало из https://github.com/mozilla/pjs.git
return error when incomplete shutdown has been detected.
This commit is contained in:
Родитель
8d7c71a16a
Коммит
2d8c1b98ba
|
@ -32,7 +32,7 @@
|
|||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: nss.h,v 1.19 2002-04-25 18:51:45 relyea%netscape.com Exp $
|
||||
* $Id: nss.h,v 1.20 2002-04-26 22:36:05 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#ifndef __nss_h_
|
||||
|
@ -132,7 +132,7 @@ SECStatus NSS_NoDB_Init(const char *configdir);
|
|||
/*
|
||||
* Close the Cert, Key databases.
|
||||
*/
|
||||
extern void NSS_Shutdown(void);
|
||||
extern SECStatus NSS_Shutdown(void);
|
||||
|
||||
/*
|
||||
* set the PKCS #11 strings for the internal token.
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
# $Id: nssinit.c,v 1.43 2002-04-12 19:05:09 relyea%netscape.com Exp $
|
||||
# $Id: nssinit.c,v 1.44 2002-04-26 22:36:05 relyea%netscape.com Exp $
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -454,13 +454,16 @@ NSS_NoDB_Init(const char * configdir)
|
|||
PR_TRUE,PR_TRUE,PR_TRUE,PR_TRUE,PR_TRUE);
|
||||
}
|
||||
|
||||
void
|
||||
SECStatus
|
||||
NSS_Shutdown(void)
|
||||
{
|
||||
SECStatus rv;
|
||||
|
||||
SECOID_Shutdown();
|
||||
STAN_Shutdown();
|
||||
SECMOD_Shutdown();
|
||||
rv = SECMOD_Shutdown();
|
||||
nss_IsInitted = PR_FALSE;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -55,7 +55,8 @@ extern PK11DefaultArrayEntry PK11_DefaultArray[];
|
|||
extern int num_pk11_default_mechanisms;
|
||||
|
||||
|
||||
void SECMOD_Init() {
|
||||
void
|
||||
SECMOD_Init() {
|
||||
/* don't initialize twice */
|
||||
if (moduleLock) return;
|
||||
|
||||
|
@ -64,7 +65,8 @@ void SECMOD_Init() {
|
|||
}
|
||||
|
||||
|
||||
void SECMOD_Shutdown() {
|
||||
SECStatus
|
||||
SECMOD_Shutdown() {
|
||||
/* destroy the lock */
|
||||
if (moduleLock) {
|
||||
SECMOD_DestroyListLock(moduleLock);
|
||||
|
@ -106,6 +108,7 @@ void SECMOD_Shutdown() {
|
|||
PORT_Assert(secmod_PrivateModuleCount == 0);
|
||||
}
|
||||
#endif
|
||||
return (secmod_PrivateModuleCount == 0) ? SECSuccess : SECFailure;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ SECStatus SECMOD_UnloadUserModule(SECMODModule *mod);
|
|||
|
||||
SECMODModule * SECMOD_CreateModule(char *lib, char *name, char *param,
|
||||
char *nss);
|
||||
extern void SECMOD_Shutdown(void);
|
||||
extern SECStatus SECMOD_Shutdown(void);
|
||||
|
||||
|
||||
/* Module Management */
|
||||
|
|
Загрузка…
Ссылка в новой задаче