~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

Viewing changes to security/nss/lib/ssl/ssltrace.c

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 * the terms of any one of the MPL, the GPL or the LGPL.
37
37
 *
38
38
 * ***** END LICENSE BLOCK ***** */
39
 
/* $Id: ssltrace.c,v 1.3 2004/04/27 23:04:39 gerv%gerv.net Exp $ */
 
39
/* $Id: ssltrace.c,v 1.3.28.1 2007/01/31 06:03:38 nelson%bolyard.com Exp $ */
40
40
#include <stdarg.h>
41
41
#include "cert.h"
42
42
#include "ssl.h"
262
262
ssl_Trace(const char *format, ... )
263
263
{
264
264
    char buf[2000]; 
265
 
 
266
265
    va_list args;
267
 
    va_start(args, format);
268
 
    PR_vsnprintf(buf, sizeof(buf), format, args);
269
 
    va_end(args);
270
 
    puts(buf);
 
266
 
 
267
    if (ssl_trace_iob) {
 
268
        va_start(args, format);
 
269
        PR_vsnprintf(buf, sizeof(buf), format, args);
 
270
        va_end(args);
 
271
 
 
272
        fputs(buf,  ssl_trace_iob);
 
273
        fputs("\n", ssl_trace_iob);
 
274
    }
271
275
}
272
276
#endif