diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-04-29 22:37:12 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-04-29 22:37:12 +0000 |
commit | 08557cf22cd7c337d7430c32fb21ed29a77a8131 (patch) | |
tree | ad9cc2e9adf7a39b99ddbe69434a3d79c7cc482b /apps/s_client.c | |
parent | c4d162873f832cae400b8fee81fc826cb06d55a8 (diff) | |
download | openssl-08557cf22cd7c337d7430c32fb21ed29a77a8131.tar.gz |
Initial "opaque SSL" framework. If an application defines
OPENSSL_NO_SSL_INTERN all ssl related structures are opaque
and internals cannot be directly accessed. Many applications
will need some modification to support this and most likely some
additional functions added to OpenSSL.
The advantage of this option is that any application supporting
it will still be binary compatible if SSL structures change.
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 8a57dcfc9f..8e0e8cb35d 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1238,7 +1238,7 @@ re_start: } } #endif - if (c_Pause & 0x01) con->debug=1; + if (c_Pause & 0x01) SSL_set_debug(con, 1); if ( SSL_version(con) == DTLS1_VERSION) { @@ -1287,7 +1287,7 @@ re_start: if (c_debug) { - con->debug=1; + SSL_set_debug(con, 1); BIO_set_callback(sbio,bio_dump_callback); BIO_set_callback_arg(sbio,(char *)bio_c_out); } @@ -1972,7 +1972,7 @@ static void print_stuff(BIO *bio, SSL *s, int full) BIO_number_read(SSL_get_rbio(s)), BIO_number_written(SSL_get_wbio(s))); } - BIO_printf(bio,((s->hit)?"---\nReused, ":"---\nNew, ")); + BIO_printf(bio,(SSL_cache_hit(s)?"---\nReused, ":"---\nNew, ")); c=SSL_get_current_cipher(s); BIO_printf(bio,"%s, Cipher is %s\n", SSL_CIPHER_get_version(c), |