Closed Bug 208854 Opened 22 years ago Closed 22 years ago

numerous functions declared in both cert.h and genname.h

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(1 file)

Numerous functions are declared in both cert.h and genname.h. Many of those functions are not exported. This begs the questions: 1. Is genname.h public or private? 2. Should cert.h merely include genname.h, rather than duplicating its functions? 3. For each of the duplicated functions: a. is it public or is it private? b. should it be declared in cert.h? or in genname.h?
genname.h is a private header.
Taking bug. I've already eliminated all but 2 duplicates.
Assignee: wchang0222 → MisterSSL
Marking P2 for 3.9. Patch forthcoming.
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 3.9
Attached patch patch v1Splinter Review
This patch does 3 things: 1. Remove one of the two declarations of CERT_GetNamesLength from cert.h 2. Remove CERT_GetNamesLength from cert.h. It is declared in genname.h. 3. Correct the descriptive comment for CERT_GetNamesLength in genname.h
Attachment #132890 - Flags: review?(wchang0222)
In comment 4 above, my description of the patch was incorrect. Item 1 should have read: 1. Remove one of the two declarations of CERT_GetCommonName from cert.h
Comment on attachment 132890 [details] [diff] [review] patch v1 r=wtc. By the way, in the previous comment, the function in item #1 should be CERT_GetCommonName.
Attachment #132890 - Flags: review?(wchang0222) → review+
/cvsroot/mozilla/security/nss/lib/certdb/genname.h,v <-- genname.h new revision: 1.6; previous revision: 1.5 /cvsroot/mozilla/security/nss/lib/certdb/cert.h,v <-- cert.h new revision: 1.39; previous revision: 1.38
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: