Closed
Bug 1479787
Opened 6 years ago
Closed 6 years ago
Move mozpkix from PSM to NSS
Categories
(NSS :: Libraries, enhancement, P2)
Tracking
(firefox64 fixed)
RESOLVED
FIXED
3.40
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: franziskus, Assigned: franziskus)
References
(Blocks 1 open bug)
Details
Attachments
(8 files, 2 obsolete files)
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
keeler
:
review+
mt
:
review+
|
Details |
(deleted),
text/x-phabricator-request
|
glandium
:
review+
|
Details |
mozpkix should live in NSS and replace the old pkix libraries.
In this first step the mozpkix code gets moved to NSS and linked statically into Firefox.
Assignee | ||
Comment 1•6 years ago
|
||
This patch adds mozpkix to NSS and builds it as a static library, which is then used in PSM.
There are two static libs: `mozpkix` and `mozpkix-test`. The latter is needed for PSM gtests.
Currently the static mozpkix libraries always built with gyp. If we want to build mozpkix only for Firefox, we could do that.
The re-naming of `Time.h` to `PkixTime.h` is necessary because it would conflict with `time.h` on Windows.
I have of course a separate patch for NSS but this gives the entire picture. If there are no fundamental objections, I'll upload the two separate patches for NSS and Firefox.
Assignee | ||
Comment 2•6 years ago
|
||
This patch copies mozpkix from mozilla-central to NSS with all its history (thanks to hg convert).
It'll need changes to the NSS repository to get this landed (we don't allow more than one root currenlty and I have to get someone to allow this new root).
Assignee | ||
Comment 3•6 years ago
|
||
This moves mozpkix to the right locations and builds it as part of NSS.
This patch also uses `std::unique_ptr` everywhere instead of `ScopedPtr`.
Depends on D2719.
Assignee | ||
Comment 4•6 years ago
|
||
Running clang-format on everything to make this pass NSS CI.
Assignee | ||
Comment 5•6 years ago
|
||
Delete mozpkix code from the Firefox repo.
Depends on D2721.
Assignee | ||
Comment 6•6 years ago
|
||
This patch deletes the mozpkix code from the Firefox repo.
Depends on D2721
Updated•6 years ago
|
Attachment #8997440 -
Attachment is obsolete: true
Assignee | ||
Comment 7•6 years ago
|
||
Use mozpkix static lib from NSS in Firefox.
Depends on D2722
Updated•6 years ago
|
Attachment #8996704 -
Attachment is obsolete: true
Comment 8•6 years ago
|
||
Comment on attachment 8997438 [details]
Bug 1479787 - clang-format
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2721
Attachment #8997438 -
Flags: review+
Comment 9•6 years ago
|
||
Comment on attachment 8997439 [details]
Bug 1479787 - delete mozpkix
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2722
Attachment #8997439 -
Flags: review+
Comment 10•6 years ago
|
||
Comment on attachment 8997442 [details]
Bug 1479787 - use NSS mozpkix in Firefox
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2725
Attachment #8997442 -
Flags: review+
Comment 11•6 years ago
|
||
Comment on attachment 8997436 [details]
Bug 1479787 - build mozpkix as part of NSS
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2720
Attachment #8997436 -
Flags: review+
Comment 12•6 years ago
|
||
Comment on attachment 8997435 [details]
Bug 1479787 - merge mozpkix from mozilla-central to NSS
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2719
Attachment #8997435 -
Flags: review+
Comment 13•6 years ago
|
||
Comment on attachment 8997435 [details]
Bug 1479787 - merge mozpkix from mozilla-central to NSS
Martin Thomson [:mt:] has approved the revision.
https://phabricator.services.mozilla.com/D2719
Attachment #8997435 -
Flags: review+
Comment 14•6 years ago
|
||
Comment on attachment 8997436 [details]
Bug 1479787 - build mozpkix as part of NSS
Martin Thomson [:mt:] has approved the revision.
https://phabricator.services.mozilla.com/D2720
Attachment #8997436 -
Flags: review+
Comment 15•6 years ago
|
||
Comment on attachment 8997438 [details]
Bug 1479787 - clang-format
Martin Thomson [:mt:] has approved the revision.
https://phabricator.services.mozilla.com/D2721
Attachment #8997438 -
Flags: review+
Comment 16•6 years ago
|
||
Comment on attachment 8997442 [details]
Bug 1479787 - use NSS mozpkix in Firefox
Martin Thomson [:mt:] has approved the revision.
https://phabricator.services.mozilla.com/D2725
Attachment #8997442 -
Flags: review+
Comment 17•6 years ago
|
||
Comment on attachment 8997439 [details]
Bug 1479787 - delete mozpkix
Martin Thomson [:mt:] has approved the revision.
https://phabricator.services.mozilla.com/D2722
Attachment #8997439 -
Flags: review+
Assignee | ||
Comment 18•6 years ago
|
||
Assignee | ||
Comment 19•6 years ago
|
||
As Mike noticed correctly the patch in D2725 breaks builds with system NSS.
Since the Firefox build system doesn't allow us to pick things out of the NSS build I introduced a new way to build NSS (`--mozpkix-only`) and use that when building Firefox with system NSS.
Unfortunately this is never tested anywhere so we'll have to wait for distros to pick this up and see what happens.
Depends on D2725.
Assignee | ||
Comment 20•6 years ago
|
||
This patch adds an option to build only mozpkix against the system NSS.
Note that mozpkix includes `<nss/xxx.h>` now as we can't add include directories through gyp to the Firefox build.
Depends on D2720.
Comment 21•6 years ago
|
||
Comment on attachment 8998215 [details]
Bug 1479787 - mozpkix-only build
[:keeler] (use needinfo) has approved the revision.
https://phabricator.services.mozilla.com/D2861
Attachment #8998215 -
Flags: review+
Comment 22•6 years ago
|
||
Comment on attachment 8998215 [details]
Bug 1479787 - mozpkix-only build
Martin Thomson [:mt:] has approved the revision.
Attachment #8998215 -
Flags: review+
Comment 23•6 years ago
|
||
Comment on attachment 8998213 [details]
Bug 1479787 - build mozpkix when system NSS is used
Martin Thomson [:mt:] has approved the revision.
Attachment #8998213 -
Flags: review+
Comment 24•6 years ago
|
||
So, I was trying to setup a build on try for Firefox + system NSS, using the in-tree NSS. But... the gyp build system doesn't create nss-config, which breaks --with-system-nss (incidentally, there is no `install` rule either, and the dist directory does not have a hierarchy that would match /usr or /usr/local). I don't feel like using the make build system...
Comment 25•6 years ago
|
||
Un-assigning Franziskus as he's out until October.
Assignee: franziskuskiefer → nobody
Assignee | ||
Comment 26•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → franziskuskiefer
Assignee | ||
Comment 27•6 years ago
|
||
NSS changes:
https://hg.mozilla.org/projects/nss/rev/94bcc2706b98
https://hg.mozilla.org/projects/nss/rev/403437c461fd
https://hg.mozilla.org/projects/nss/rev/1dc240df02b1
Target Milestone: --- → 3.40
Assignee | ||
Comment 28•6 years ago
|
||
This is a combined patch of the m-c changes for movin mozpkix to NSS.
This requires to land NSS tip in m-c first (e.g. python2 client.py update_nss).
* delete mozpkix (D2722)
* use NSS mozpkix in Firefox (D2725)
* build mozpkix when system NSS is used (2860)
Comment 29•6 years ago
|
||
Comment on attachment 9013247 [details]
Bug 1479787 - use mozpkix from NSS and delete from m-c
Mike Hommey [:glandium] has approved the revision.
Attachment #9013247 -
Flags: review+
Assignee | ||
Comment 30•6 years ago
|
||
Comment 31•6 years ago
|
||
Pushed by franziskuskiefer@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fd2a0cc4b40a
delete mozpkix, r=mt,keeler
https://hg.mozilla.org/integration/mozilla-inbound/rev/432a98e50d2b
use NSS mozpkix in Firefox, r=mt,keeler,glandium
Comment 32•6 years ago
|
||
bugherder |
Comment 33•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/b9846bdfa088
Port bug 1479787 - Use NSS mozpkix instead of pkix (analysis by Rob Lemley). rs=bustage-fix
You need to log in
before you can comment on or make changes to this bug.
Description
•