Closed Bug 1260640 Opened 8 years ago Closed 5 years ago

Update nsNSSCertificateDB::getCertsFromPackage() so callers don't need to convert the returned certs into usable formats

Categories

(Core :: Security: PSM, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: Cykesiopka, Assigned: mbirghan)

References

()

Details

(Whiteboard: [psm-cleanup])

Attachments

(1 file)

nsNSSCertificateDB::getCertsFromPackage() (in concert with collect_certs()) currently takes a raw buffer, decodes the certs within, and returns those certs as an array of SECItems via the |rawCerts| member of a CERTDERCerts struct.

This is problematic, because at least some callers of the method instead require an array of SECItem *pointers*, and have to manually convert to the appropriate format. ImportCertsIntoTempStorage() is an example function that has to deal with this: https://hg.mozilla.org/mozilla-central/file/df87a62ca357/security/manager/ssl/nsNSSCertificateDB.cpp#l501.

If possible, getCertsFromPackage() should be modified so that this sort of manual conversion is not required.
Keywords: checkin-needed

Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1525cf59dd27
Update nsNSSCertificateDB::getCertsFromPackage() so callers don't need to convert the returned certs into usable formats r=keeler

Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Assignee: nobody → mbirghan
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: