Closed
Bug 993489
Opened 10 years ago
Closed 10 years ago
ECC decode refactoring needed to build OpenJDK SunEC provider for ECC support
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.16.1
People
(Reporter: elio.maldonado.batiz, Assigned: elio.maldonado.batiz)
References
Details
Attachments
(1 file, 2 obsolete files)
|
13.50 KB,
patch
|
rrelyea
:
superreview+
|
Details | Diff | Splinter Review |
OpenJDK's SunEC provider currently suppports ecc via duplicated code from NSS and they need to have the SunEC provider use the system NSS instead. More details can be found on https://bugzilla.redhat.com/show_bug.cgi?id=1075702. After Bob's analysis this is best accomplished by ecc decode refactoring that moves it from softoken to freebl.
| Assignee | ||
Updated•10 years ago
|
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → emaldona
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8403404 -
Flags: superreview?(wtc)
Attachment #8403404 -
Flags: review?(rrelyea)
| Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 3.16.1
| Assignee | ||
Updated•10 years ago
|
Priority: -- → P2
| Assignee | ||
Updated•10 years ago
|
Comment 3•10 years ago
|
||
Comment on attachment 8403404 [details] [diff] [review] Refactor ecdecode from softoken to freebl Review of attachment 8403404 [details] [diff] [review]: ----------------------------------------------------------------- ::: lib/freebl/ecdecode.c @@ +1,1 @@ > +/* This Source Code Form is subject to the terms of the Mozilla Public Please make sure you use the right hg command to move this file, so that the revision history is preserved. ::: lib/freebl/loader.h @@ +710,2 @@ > /* Add new function pointers at the end of this struct and bump > * FREEBL_VERSION at the beginning of this file. */ Please bump REEBL_VERSION at the beginning of this file. ::: lib/freebl/stubs.c @@ +522,5 @@ > +extern SECOidTag > +SECOID_FindOIDTag_stub(const SECItem *oid) > +{ > + STUB_SAFE_CALL1(SECOID_FindOIDTag_Util, oid); > + abort(); Should we return something to avoid a compiler warning?
| Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Wan-Teh Chang from comment #3) > Comment on attachment 8403404 [details] [diff] [review] > Refactor ecdecode from softoken to freebl > > Review of attachment 8403404 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: lib/freebl/ecdecode.c > @@ +1,1 @@ > > +/* This Source Code Form is subject to the terms of the Mozilla Public > > Please make sure you use the right hg command to move this file, > so that the revision history is preserved. > I think the proper hg command is hg rename lib/softokn/ecdecode.c lib/freebl/ecdecode.c > ::: lib/freebl/loader.h > @@ +710,2 @@ > > /* Add new function pointers at the end of this struct and bump > > * FREEBL_VERSION at the beginning of this file. */ > > Please bump REEBL_VERSION at the beginning of this file. That would be from 0x0310 to 0x0311, isn't it? > > ::: lib/freebl/stubs.c > @@ +522,5 @@ > > +extern SECOidTag > > +SECOID_FindOIDTag_stub(const SECItem *oid) > > +{ > > + STUB_SAFE_CALL1(SECOID_FindOIDTag_Util, oid); > > + abort(); > > Should we return something to avoid a compiler warning? Yes, I think we should return SEC_OID_UNKNOWN.
Comment 5•10 years ago
|
||
Comment on attachment 8403404 [details] [diff] [review] Refactor ecdecode from softoken to freebl Review of attachment 8403404 [details] [diff] [review]: ----------------------------------------------------------------- ::: lib/freebl/loader.h @@ +710,2 @@ > /* Add new function pointers at the end of this struct and bump > * FREEBL_VERSION at the beginning of this file. */ FREEBL_VERSION should be changed from 0x0310 to 0x0311. (0x11 is 17 decimal.)
| Assignee | ||
Comment 6•10 years ago
|
||
Address wtc's review comments. It lacks white space clean up.
Attachment #8403404 -
Attachment is obsolete: true
Attachment #8403404 -
Flags: superreview?(wtc)
Attachment #8403404 -
Flags: review?(rrelyea)
Attachment #8403700 -
Flags: review?(wtc)
| Assignee | ||
Comment 7•10 years ago
|
||
Like V2 but also cleaned up white space.
Attachment #8403700 -
Attachment is obsolete: true
Attachment #8403700 -
Flags: review?(wtc)
Attachment #8404069 -
Flags: review?(wtc)
Updated•10 years ago
|
Attachment #8404069 -
Flags: superreview?(rrelyea)
Updated•10 years ago
|
Attachment #8404069 -
Flags: superreview?(rrelyea) → superreview+
| Assignee | ||
Comment 8•10 years ago
|
||
Pushed: https://hg.mozilla.org/projects/nss/rev/4ed7ac939ad7
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•10 years ago
|
||
Previous commit had the 'hg rename' missing for some reason, i'm still new to the ways or mercurial Added the missing part: https://hg.mozilla.org/projects/nss/rev/4a6b3e8efd9f
| Assignee | ||
Comment 10•10 years ago
|
||
I had to back out the last two changesetss. They don't do what I expected.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 11•10 years ago
|
||
Pushed: http://hg.mozilla.org/projects/nss/rev/f3e3b8b185fa
| Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Elio Maldonado from comment #4) > (In reply to Wan-Teh Chang from comment #3) > > Comment on attachment 8403404 [details] [diff] [review] > > Refactor ecdecode from softoken to freebl > > > > Review of attachment 8403404 [details] [diff] [review]: > > ----------------------------------------------------------------- > > > > ::: lib/freebl/ecdecode.c > > @@ +1,1 @@ > > > +/* This Source Code Form is subject to the terms of the Mozilla Public > > > > Please make sure you use the right hg command to move this file, > > so that the revision history is preserved. > > > > I think the proper hg command is hg rename lib/softokn/ecdecode.c > lib/freebl/ecdecode.c Thatt's not enough and had to do an explicit add and remove but the history is indeed preserved. An hg log lib/freebl/ecdecode.c shows you only the last commit but you can still see the old history in the old directory via hg lib/softoken/ecdecode.c even though the file has been moved.
| Assignee | ||
Updated•7 years ago
|
Attachment #8404069 -
Flags: review?(wtc)
You need to log in
before you can comment on or make changes to this bug.
Description
•