diff options
author | Nils Larsch <nils@openssl.org> | 2006-03-12 22:16:57 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-03-12 22:16:57 +0000 |
commit | e968089485b10040ce96be49c1e6d327bfc47226 (patch) | |
tree | 3b36c72a9e7afe7212c2d8f6836f8092b8ed2737 /ssl | |
parent | c2cd422ac648d61189717afdaae1dbcd9aa75c78 (diff) |
use BIO_snprintf() instead of snprintf + use BIO_FP_TEXT for text output
Submitted by: Gisle Vanem
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssltest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 0d611161ab..0be921f7f2 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -470,7 +470,7 @@ int main(int argc, char *argv[]) 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); @@ -489,7 +489,7 @@ int main(int argc, char *argv[]) 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++; @@ -2350,7 +2350,7 @@ static unsigned int psk_client_callback(SSL *ssl, const char *hint, char *identi int ret; unsigned int psk_len = 0; - ret = snprintf(identity, max_identity_len, "Client_identity"); + ret = BIO_snprintf(identity, max_identity_len, "Client_identity"); if (ret < 0) goto out_err; if (debug) |