Consolidate the code to delete a cert and the matching private key.

ASSIGNED
Assigned to

Status

JSS
Library
--
enhancement
ASSIGNED
15 years ago
11 years ago

People

(Reporter: Wan-Teh Chang, Assigned: Wan-Teh Chang)

Tracking

Details

(Assignee)

Description

15 years ago
PK11_DeleteTokenCertAndKey will not delete the
cert if there is no matching private key, so it
is also necessary to call SEC_DeletePermCertificate.
Due to the lack of documentation of these NSS
functions, this code sequence is not obvious.

JSS needs to do this in two places:
1. PK11Store.c: Java_org_mozilla_jss_pkcs11_PK11Store_deleteCert
2. JSSKeyStoreSpi.c: traverseTokenObjects

The code in the two places is slightly different.
We should pick the better one and turn it into
a deleteTokenCertAndKey function that the two places
would call.
(Assignee)

Comment 1

15 years ago
Taking bug.
Assignee: nicolson → wchang0222

Updated

11 years ago
Status: NEW → ASSIGNED
QA Contact: jamie-bugzilla → jss-qa
You need to log in before you can comment on or make changes to this bug.