Closed Bug 397825 Opened 17 years ago Closed 17 years ago

libpkix: ifdef code that uses user object types

Categories

(NSS :: Libraries, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alvolkov.bgs, Assigned: alvolkov.bgs)

References

Details

(Whiteboard: PKIX)

Attachments

(1 file, 2 obsolete files)

libpkix associates unique number(object type) with each structures defined by the library. There are two ways for creation of a new types: one - by adding new element into PKIX_TYPENUM enum(defined in pkixt.h); two - create new, so called, "user type" by calling PKIX_PL_Object_RegisterType. Since current implementation does not use any "user types" functionality we should ifdef all code related to "user types".
Priority: -- → P2
Whiteboard: PKIX
Attached patch Patch v1 (obsolete) — Splinter Review
This has been attached to the bug 391457 and reviewed by Nelson.
Attachment #288761 - Flags: review-
Attached patch Patch v2 (obsolete) — Splinter Review
Attachment #288762 - Flags: review?
Attached patch Patch v2Splinter Review
modified according to review comments.
Attachment #288761 - Attachment is obsolete: true
Attachment #288763 - Flags: review?(nelson)
Attachment #288762 - Attachment is obsolete: true
Attachment #288762 - Flags: review?
Comment on attachment 288763 [details] [diff] [review] Patch v2 This patch creates many new places where we see code sequences like this: ... goto cleanup; } else { ... } cleanup: In those sequences, the goto cleanup is unnecessary. But let's get this checked in and we can clean that up later. While reviewing this patch, I noticed more structure declarations in header files, for structures that should be completely private, known only inside the related .c file. We should fix all those to mitigate the temptation to access internals of other objects' private internals. But we can do that in a later patch for another bug.
Attachment #288763 - Flags: review?(nelson) → review+
Alexei, one more question: Have you built this code (with the patch applied) both with and without the feature test macro PKIX_USER_OBJECT_TYPE defined? Do you know for certain that this code still builds when that macro is defined? If it does not, then before we can close this bug we need to fix that.
Version: 3.12 → trunk
Tree builds with and without macro PKIX_USER_OBJECT_TYPE been defined.
Patch v2 has been integrated.
Status: NEW → RESOLVED
Closed: 17 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: