diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-12-08 13:42:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-12-08 13:42:32 +0000 |
commit | b52a2738d4cd20d8cf4cf88943bee2b6789eeaf1 (patch) | |
tree | 98453c75951c77eeea08d7be20576e428742772b /apps | |
parent | 10f99d7b774a491242db82287eeb1bfc04c4c419 (diff) |
Add ctrl and macro so we can determine if peer support secure renegotiation.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_client.c | 2 | ||||
-rw-r--r-- | apps/s_server.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index a4be63a114..a3db16dfb0 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1725,6 +1725,8 @@ static void print_stuff(BIO *bio, SSL *s, int full) EVP_PKEY_bits(pktmp)); EVP_PKEY_free(pktmp); } + BIO_printf(bio, "Secure Renegotiation IS%s supported\n", + SSL_get_secure_renegotiation_support(s) ? "" : " NOT"); #ifndef OPENSSL_NO_COMP comp=SSL_get_current_compression(s); expansion=SSL_get_current_expansion(s); diff --git a/apps/s_server.c b/apps/s_server.c index 8a08a30695..1a06d19bb1 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2209,6 +2209,8 @@ static int init_ssl_connection(SSL *con) con->kssl_ctx->client_princ); } #endif /* OPENSSL_NO_KRB5 */ + BIO_printf(bio_s_out, "Secure Renegotiation IS%s supported\n", + SSL_get_secure_renegotiation_support(con) ? "" : " NOT"); return(1); } |