summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-12-08 13:42:08 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-12-08 13:42:08 +0000
commit5430200b8b9528861ec9759623107f407ba8c38f (patch)
tree13554bb74de1bacd69b49781c9f78a7966f49e18 /apps
parent13f6d57b1ef964f2b9cbd8f68783884caef0e5cb (diff)
Add ctrl and macro so we can determine if peer support secure renegotiation.
Diffstat (limited to 'apps')
-rw-r--r--apps/s_client.c2
-rw-r--r--apps/s_server.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 2f647b852d..a52e728a16 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1730,6 +1730,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 6f67689519..9ec5600c75 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -2215,6 +2215,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);
}