Closed Bug 158239 Opened 23 years ago Closed 22 years ago

SEC_FindCrlByKeyOnSlot could do a partial CRL decode

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julien.pierre, Assigned: julien.pierre)

References

Details

Attachments

(1 file)

There is no need to do a full decode in this case, since we don't need the entries.
Depends on: 149816
Priority: -- → P2
Target Milestone: --- → 3.6
This patches optimizes SEC_FindCrlByKeyOnSlot, which is notably used in crl_storeCRL to skip the unnecessary decoding of entries. This can be done because both of these functions are unexported. This patch modifies SEC_FindCrlByName which is an exported function, and calls SEC_FindCrlByKeyOnSlot. The change is to complete the CRL decoding so that it still returns a fully-decoded CRL.
I have implemented this optimization in a different way in the CRL cache implementation. SEC_FindCrlByKeyOnSlot now takes the decodeoptions as an argument. crl_storeCrl passes CRL_DECODE_SKIP_ENTRIES to do the partial decode. Marking fixed.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: