Closed Bug 172678 Opened 22 years ago Closed 22 years ago

The internal functions InitCRLCache and ShutdownCRLCache should not be defined in the public header cert.h

Categories

(NSS :: Libraries, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: julien.pierre)

Details

Attachments

(1 file)

The internal functions InitCRLCache and ShutdownCRLCache
should not be defined in the public header file cert.h.
I think the reason why it was done that was is because those internal functions
are called accross units.
If I declare them in certdb/certi.h, how should I include it from lib/nss ?
#include "../certdb/certi.h" ?

There doesn't seem to be anything doing that currently.
1. Add certi.h to the PRIVATE_EXPORTS list in
lib/certdb/manifest.mn.

2. Say #include "certi.h" from lib/nss or any
other directory.

Mac does not allow a pathname in #include
directives, so #include "../certdb/certi.h"
will break Mac builds.  See
http://bugzilla.mozilla.org/show_bug.cgi?id=166933#c3.
Checking in certdb/cert.h;
/cvsroot/mozilla/security/nss/lib/certdb/cert.h,v  <--  cert.h
new revision: 1.25; previous revision: 1.24
done
Checking in certdb/certi.h;
/cvsroot/mozilla/security/nss/lib/certdb/certi.h,v  <--  certi.h
new revision: 1.7; previous revision: 1.6
done
Checking in certdb/manifest.mn;
/cvsroot/mozilla/security/nss/lib/certdb/manifest.mn,v  <--  manifest.mn
new revision: 1.10; previous revision: 1.9
done
Checking in nss/nssinit.c;
/cvsroot/mozilla/security/nss/lib/nss/nssinit.c,v  <--  nssinit.c
new revision: 1.57; previous revision: 1.56
done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment on attachment 101791 [details] [diff] [review]
patch to move InitCRLCache and ShutdownCRLCache to private header certi.h

r=wtc.
Attachment #101791 - Flags: review+
Target Milestone: --- → 3.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: