Closed Bug 399236 Opened 17 years ago Closed 17 years ago

pkix wrapper must print debug output into stderr

Categories

(NSS :: Libraries, defect)

3.12
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

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

Details

(Whiteboard: PKIXTEST)

Attachments

(1 file)

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)
Whiteboard: PKIXTEST
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+
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.

Attachment

General

Creator:
Created:
Updated:
Size: