My previous message seems to have got lost somewhere; it is not in the archive.

----- Original Message ----- From: "Gisle Vanem" <[EMAIL PROTECTED]>
To: "OpenSSL-dev" <openssl-dev@openssl.org>
Sent: Tuesday, January 18, 2005 2:23 PM
Subject: [Patch] ssltest.c



Currently ssltest.exe prints to stdout/stderr using binary mode on DOS/Win32. So the screen output is all screwed:

ssltest.exe -d -v -time -server_auth
Using BIO pair (-bio_pair)
                         Warning: For accurate timings, use more connections (e
.g. -num 1000)
             Available compression methods:
                                             1: zlib compression
                                                                1:error:0200101

Easy patch:

--- ssl/ssltest.org 2005-01-17 13:21:06.000000000 +0100
+++ ssl/ssltest.c   2005-01-18 14:20:40.000000000 +0100
@@ -411,7 +411,7 @@
       debug = 0;
       cipher = 0;

-        bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
+        bio_err=BIO_new_fp(stderr,BIO_NOCLOSE|BIO_FP_TEXT);

       CRYPTO_set_locking_callback(lock_dbg_cb);

@@ -430,7 +430,7 @@

       RAND_seed(rnd_seed, sizeof rnd_seed);

-        bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE);
+        bio_stdout=BIO_new_fp(stdout,BIO_NOCLOSE|BIO_FP_TEXT);

       argc--;
       argv++;

______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]

Reply via email to