summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrelyea%netscape.com <devnull@localhost>2002-05-21 21:24:35 +0000
committerrelyea%netscape.com <devnull@localhost>2002-05-21 21:24:35 +0000
commitc8ac5358c90b728ef445583f7681ecf5bc60603c (patch)
treed0c265ff3b7decfd618f62e07c33d6a447fc01be
parent128f65f6003c3601de84406eebb3cf94071198cf (diff)
downloadnss-hg-c8ac5358c90b728ef445583f7681ecf5bc60603c.tar.gz
Fix spelling error.
Clear out certs from the cache before the token goes away.
-rw-r--r--security/nss/lib/pk11wrap/dev3hack.c2
-rw-r--r--security/nss/lib/pk11wrap/pk11util.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/security/nss/lib/pk11wrap/dev3hack.c b/security/nss/lib/pk11wrap/dev3hack.c
index 9ffd63fc9..3f704436d 100644
--- a/security/nss/lib/pk11wrap/dev3hack.c
+++ b/security/nss/lib/pk11wrap/dev3hack.c
@@ -284,7 +284,7 @@ nssTrustDomain_RemoveTokenCertsFromCache
);
NSS_IMPLEMENT PRStatus
-nssToken_NofifyCertsNotVisible
+nssToken_NotifyCertsNotVisible
(
NSSToken *tok
)
diff --git a/security/nss/lib/pk11wrap/pk11util.c b/security/nss/lib/pk11wrap/pk11util.c
index 11673d9f6..57023ce5b 100644
--- a/security/nss/lib/pk11wrap/pk11util.c
+++ b/security/nss/lib/pk11wrap/pk11util.c
@@ -40,6 +40,7 @@
#include "pk11func.h"
#include "pki3hack.h"
#include "secerr.h"
+#include "dev.h"
/* these are for displaying error messages */
@@ -639,7 +640,10 @@ SECMOD_DestroyModule(SECMODModule *module) {
* module to disappear altogether */
for (i=0 ; i < slotCount; i++) {
if (!module->slots[i]->disabled) {
- PK11_ClearSlotList(module->slots[i]);
+ PK11_ClearSlotList(module->slots[i]);
+ if (module->slots[i]->nssToken) {
+ nssToken_NotifyCertsNotVisible(module->slots[i]->nssToken);
+ }
}
PK11_FreeSlot(module->slots[i]);
}