Closed Bug 863860 Opened 12 years ago Closed 1 year ago

nsNSSCertificate::Create does not initialize PSM

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1788856

People

(Reporter: briansmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [psm-cleanup])

In theory, nsNSSCertificate::Create could be called when NSS hasn't been initialized yet, which could cause trouble since nsNSSCertificate methods call NSS functions that depend on NSS being already initialized. In practice, in the current codebase, this shouldn't be an issue because nsNSSCertificate::Create tables a CERTCertificate* as input, and if the caller already has a CERTCertificate* then it has already initialized NSS, so initializing PSM/NSS in nsNSSCertificate::Create() would already be too late. Still, we should do this to be consistent with the nsIX509Cert constructor defined in nsNSSModule.cpp.
Whiteboard: [psm-cleanup]
Priority: -- → P5
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1788856
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.