Closed
Bug 399236
Opened 17 years ago
Closed 17 years ago
pkix wrapper must print debug output into stderr
Categories
(NSS :: Libraries, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.12
People
(Reporter: alvolkov.bgs, Assigned: alvolkov.bgs)
Details
(Whiteboard: PKIXTEST)
Attachments
(1 file)
4.51 KB,
patch
|
nelson
:
review+
|
Details | Diff | Splinter Review |
Interoperability script uses tstclnt to download server config file and certs into
local file system. When tstclnt is used with -S option is suppose to print out what was downloaded into stdout.
Currently libpkix wrapper prints debug output into stdout. This disturbs interoperability testing and should be fixed.
Attachment #284223 -
Flags: review?(nelson)
Assignee | ||
Updated•17 years ago
|
Whiteboard: PKIXTEST
Comment 1•17 years ago
|
||
Comment on attachment 284223 [details] [diff] [review]
print libpkix debug info into the stderr
r=nelson, with one suggested/requested (not required) change.
> #ifdef DEBUG
> char *string = pkix_Error2ASCII(node->error, plContext);
>- printf("Branch search finished with error: \t%s\n", string);
>+ fprintf(stderr, "Branch search finished with error: \t%s\n", string);
> PKIX_PL_Free(string, NULL);
> #endif
We really don't want debug printfs (whether to stdout or stderr) in our general
builds of NSS shared libs. So, I suggest you change the above #ifdef (and *all*
others like it that control the use of debug printfs) as follows:
>-#ifdef DEBUG
>+#ifdef DEBUG_volkov
Attachment #284223 -
Flags: review?(nelson) → review+
Assignee | ||
Comment 2•17 years ago
|
||
the patch committed with suggested change.
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.
Description
•