Closed Bug 63451 Opened 24 years ago Closed 24 years ago

Move getCertificatePrincipal() from nsIZipReader to nsIJAR

Categories

(Core :: Security, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: samir_bugzilla, Assigned: security-bugs)

Details

Attachments

(5 files)

Resurrect nsIJAR.  Make nsJAR inherit from nsIJAR and nsIZipRedaer.  Move 
getCertificatePrincipal() from nsIZipReader to nsIJAR.  The original intent was 
to abstract non-zip reader functionality (specifically, security functionality) 
into a separate interface for a modular design.
will do...
Status: NEW → ASSIGNED
3rd patch looks good.  Minor comments follow.

1> Add nsIJAR.idl to libjar/MANIFEST_IDL
2> Add nsIJAR.idl to libjar/makefile.win
3> Move the certtificate-related constants (NOT_SIGNED et. al.) to nsIJAR.idl.

Please build on Win and Mac as well and run an XPInstall sanity test.  Thanks.
-  nsJAR* zip = (nsJAR*)mZips.Get(&key); // AddRefs
+  nsJAR* zip = (nsJAR*)(nsIZipReader*)mZips.Get(&key); // AddRefs

Can you use one of the NS_*_CAST macros here and in the other like places?

I don't understand why this is in the diff:

+
/*
     JS_ReportError(aCx, "access disallowed from scripts at %s to documents "
                         "at another domain", str);
-    nsCRT::free(str);
+    */
+
nsCRT::free(str);
+
printf("Failed.\n");

but I sure don't like the naked printf.
Contingent on you _not_ removing Pierre from the contributors list, sr=shaver.
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Marking VERIFIED FIXED, per mstoltz's comments
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: