diff options
author | relyea%netscape.com <devnull@localhost> | 2005-10-03 21:58:24 +0000 |
---|---|---|
committer | relyea%netscape.com <devnull@localhost> | 2005-10-03 21:58:24 +0000 |
commit | b045d0878965ec967c326117ca5264c4c08b021c (patch) | |
tree | 559186f64b2297738fd8bbe2681ba50d7c81c70a /security/nss/lib | |
parent | de13941371ded01987d9ec88aac5e077df9fe021 (diff) | |
download | nss-hg-b045d0878965ec967c326117ca5264c4c08b021c.tar.gz |
This change was not part of bug 272484 and has not been reviewed.
Back it out.
Diffstat (limited to 'security/nss/lib')
-rw-r--r-- | security/nss/lib/pk11wrap/pk11cert.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/security/nss/lib/pk11wrap/pk11cert.c b/security/nss/lib/pk11wrap/pk11cert.c index e36e88960..08c0af2db 100644 --- a/security/nss/lib/pk11wrap/pk11cert.c +++ b/security/nss/lib/pk11wrap/pk11cert.c @@ -2392,41 +2392,3 @@ PK11_ListCertsInSlot(PK11SlotInfo *slot) return certs; } -PK11SlotList * -PK11_GetAllSlotsForCert(NSSCertificate *c, void *arg) -{ - /* add multiple instances to the cert list */ - nssCryptokiObject **ip; - nssCryptokiObject **instances = nssPKIObject_GetInstances(&c->object); - PK11SlotList *slotList; - PRBool found = PR_FALSE; - - - if (!instances) { - PORT_SetError(SEC_ERROR_NO_TOKEN); - return NULL; - } - - slotList = PK11_NewSlotList(); - if (!slotList) { - nssCryptokiObjectArray_Destroy(instances); - return NULL; - } - - for (ip = instances; *ip; ip++) { - nssCryptokiObject *instance = *ip; - PK11SlotInfo *slot = instance->token->pk11slot; - if (slot) { - PK11_AddSlotToList(slotList, slot); - found = PR_TRUE; - } - } - if (!found) { - PK11_FreeSlotList(slotList); - PORT_SetError(SEC_ERROR_NO_TOKEN); - slotList = NULL; - } - - nssCryptokiObjectArray_Destroy(instances); - return slotList; -} |