Closed Bug 66367 Opened 24 years ago Closed 24 years ago

Renaming exported internal functions

Categories

(NSS :: Libraries, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(5 files)

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.
Attached patch Proposed patch.Splinter Review
Please review my patch and the new nssrename.h header.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 3.2
Priority: P2 → P1
OK, these look good as well.

bob
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
I found that some of the "evil functions" are being used
by our clients.  This work is not done.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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 ago24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: