[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Thu Jan 14 17:30:42 UTC 2016


The branch master has been updated
       via  47153c72536a53ecd8f428444b953db0631acc9b (commit)
      from  311f27852a18fb9c10f0c1283b639f12eea06de2 (commit)


- Log -----------------------------------------------------------------
commit 47153c72536a53ecd8f428444b953db0631acc9b
Author: Rich Salz <rsalz at akamai.com>
Date:   Thu Jan 14 12:16:00 2016 -0500

    Make SSL_set_debug deprecated in 1.1
    
    Reviewed-by: Viktor Dukhovni <viktor at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 include/openssl/ssl.h |  1 +
 ssl/ssl_lib.c         | 10 ++++++++++
 util/ssleay.num       |  2 +-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 0897de3..53ee655 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -915,6 +915,7 @@ extern "C" {
 # define SSL_SESSION_get_app_data(s)     (SSL_SESSION_get_ex_data(s,0))
 # define SSL_CTX_get_app_data(ctx)       (SSL_CTX_get_ex_data(ctx,0))
 # define SSL_CTX_set_app_data(ctx,arg)   (SSL_CTX_set_ex_data(ctx,0,(char *)arg))
+DEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))
 
 
 /*
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 03f338b..90de747 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -3673,6 +3673,16 @@ int SSL_is_server(SSL *s)
     return s->server;
 }
 
+#if OPENSSL_API_COMPAT < 0x10100000L
+void SSL_set_debug(SSL *s, int debug)
+{
+    /* Old function was do-nothing anyway... */
+    (void)s;
+    (void)debug;
+}
+#endif
+
+
 void SSL_set_security_level(SSL *s, int level)
 {
     s->cert->sec_level = level;
diff --git a/util/ssleay.num b/util/ssleay.num
index b427653..103d95f 100755
--- a/util/ssleay.num
+++ b/util/ssleay.num
@@ -295,7 +295,7 @@ SSL_srp_server_param_with_username      336	1_1_0	EXIST:!VMS:FUNCTION:SRP
 SSL_srp_server_param_with_un            336	1_1_0	EXIST:VMS:FUNCTION:SRP
 SRP_have_to_put_srp_username            337	1_1_0	NOEXIST::FUNCTION:
 SSL_SRP_CTX_free                        338	1_1_0	EXIST::FUNCTION:SRP
-SSL_set_debug                           339	1_1_0	NOEXIST::FUNCTION:
+SSL_set_debug                           339	1_1_0	EXIST::FUNCTION:DEPRECATEDIN_1_1_0
 SSL_SESSION_get0_peer                   340	1_1_0	EXIST::FUNCTION:
 TLSv1_2_client_method                   341	1_1_0	EXIST::FUNCTION:
 SSL_SESSION_set1_id_context             342	1_1_0	EXIST::FUNCTION:


More information about the openssl-commits mailing list