Closed Bug 82227 Opened 25 years ago Closed 25 years ago

Signed scripts use new PSM interfaces.

Categories

(Core Graveyard :: Security: UI, defect)

1.0 Branch
x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.1

People

(Reporter: ddrinan0264, Assigned: ddrinan0264)

Details

Attachments

(1 file)

Change the mozilla signed scripts components to use the new PSM interfaces e.g. nsIX509Cert etc. Patch to follow soon.
This should be in 0.9.1 so that users of the beta will be able to use signed scripts.
Target Milestone: --- → mozilla0.9.1
r=mstoltz. David, can you check this in? I'll help you get approval.
Adding blizzard to cc-list. Chris, Please sr this bug. Thanks!
+ //-- Create a certificate principal with id and organization data + PRUnichar* fingerprint; + rv2 = pCert->GetSha1Fingerprint(&fingerprint); + nsCAutoString fingerprintStr; + fingerprintStr.AssignWithConversion(fingerprint); + PR_FREEIF(fingerprint); Are you sure that the fingerprint can always be represented as a C string? You could have some data lossage here. Other than that sr=blizzard
Please do not commit tabs in files: +static void ContentCallback(void *arg, + const char *buf, + unsigned long len) +{ +} + +static PK11SymKey * GetDecryptKeyCallback(void *arg, + SECAlgorithmID *algid) +{ + return nsnull; +} + etc. /be
Fixed checked in.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
I checked with javi and confirmed that we're not losing any data by converting the fingerprint back to a one-byte string. The fingerprint is a hex string like "38:A3:b6:93" and so on; no two-byte characters.
I believe Mac is broke on this change (although bonsai doesn't show it going into that build) nsJar.cpp uses these hash interfaces, and now is passing PRUint32s instead of the new HashContext stuff.
Crap, I can't believe that I missed those tabs.
I forgot to commit one file during checkin. It's checked in now.
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.0 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: