Closed
Bug 66367
Opened 24 years ago
Closed 24 years ago
Renaming exported internal functions
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(5 files)
17.25 KB,
patch
|
Details | Diff | Splinter Review | |
2.25 KB,
text/plain
|
Details | |
14.93 KB,
patch
|
Details | Diff | Splinter Review | |
2.09 KB,
text/plain
|
Details | |
399 bytes,
text/plain
|
Details |
We have to export some internal functions from the nss3 shared library for use by the ssl3 or smime3 shared library. We do not want our users to use these internal functions that may change or even be removed in a future NSS release. One way to prevent users from using these exported internal functions is to rename them. My proposal is to rename function Foo to __Foo, adding double underscore in front of the function name. The current list of functions that we want to rename are: CERT_NewTempCertificate; nss_InitLock; PK11_CreateContextByRawKey; PK11_GetKeyData; CERT_TraversePermCertsForNickname; CERT_TraversePermCertsForSubject; CERT_ClosePermCertDB; CERT_DecodeDERCertificate; HMAC_Begin; HMAC_Create; HMAC_Destroy; HMAC_Finish; HMAC_Update; PBE_CreateContext; PBE_DestroyContext; PBE_GenerateBits; Bob and Nelson think we should modify the pkcs12 code to not use the HMAC functions. Then we won't need to export those HMAC symbols at all.
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Please review my patch and the new nssrename.h header.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 3.2
Assignee | ||
Updated•24 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
OK, these look good as well. bob
Assignee | ||
Comment 7•24 years ago
|
||
I decided to rename "nssrename.h" to "nssrenam.h" to follow the 8.3 naming convention. I checked in my latest patch on the tip, with the above change.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 8•24 years ago
|
||
Assignee | ||
Comment 9•24 years ago
|
||
I found that some of the "evil functions" are being used by our clients. This work is not done.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•24 years ago
|
||
All known uses of the "evil" functions in our clients' code have been removed. Marked the bug as fixed.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•