mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Reset the cert cache and clobber cert handles on token insertion an removal
This commit is contained in:
parent
a5fb0edafa
commit
b7167f5cba
@ -32,7 +32,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.8 $ $Date: 2002/05/21 21:23:33 $ $Name: $";
|
static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.9 $ $Date: 2002/06/13 21:40:43 $ $Name: $";
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
#ifndef NSSCKEPV_H
|
#ifndef NSSCKEPV_H
|
||||||
@ -331,6 +331,12 @@ nssSlot_IsTokenPresent
|
|||||||
if (session->handle != CK_INVALID_SESSION) {
|
if (session->handle != CK_INVALID_SESSION) {
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
/* the token has been removed, and reinserted, invalidate all the old
|
||||||
|
* information we had on this token */
|
||||||
|
#ifdef NSS_3_4_CODE
|
||||||
|
nssToken_NotifyCertsNotVisible(slot->token);
|
||||||
|
#endif /* NSS_3_4_CODE */
|
||||||
|
nssToken_Remove(slot->token);
|
||||||
/* token has been removed, need to refresh with new session */
|
/* token has been removed, need to refresh with new session */
|
||||||
nssrv = nssSlot_Refresh(slot);
|
nssrv = nssSlot_Refresh(slot);
|
||||||
if (nssrv != PR_SUCCESS) {
|
if (nssrv != PR_SUCCESS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user