[glib/mcatanzaro/copy-session-state: 2/2] Deprecate g_tls_client_connection_copy_session_state()



commit ed48d60decede7b3becaddd5ace5f4a4c26e6f6b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Aug 14 10:05:59 2019 -0500

    Deprecate g_tls_client_connection_copy_session_state()
    
    Exposing this function in the GLib API was probably a mistake. It has no
    users anywhere in Debian, and it's currently impossible to ensure it
    actually does anything.

 gio/gtlsclientconnection.c | 3 +++
 gio/gtlsclientconnection.h | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/gtlsclientconnection.c b/gio/gtlsclientconnection.c
index ed2ec760f..cd77a078c 100644
--- a/gio/gtlsclientconnection.c
+++ b/gio/gtlsclientconnection.c
@@ -389,6 +389,9 @@ g_tls_client_connection_get_accepted_cas (GTlsClientConnection *conn)
  * ticket to be copied without regard for privacy considerations.
  *
  * Since: 2.46
+ *
+ * Deprecated: 2.62: use a lower-level TLS library directly if you
+ * require this degree of control over session resumption.
  */
 void
 g_tls_client_connection_copy_session_state (GTlsClientConnection *conn,
diff --git a/gio/gtlsclientconnection.h b/gio/gtlsclientconnection.h
index 29dbafcf4..950871bce 100644
--- a/gio/gtlsclientconnection.h
+++ b/gio/gtlsclientconnection.h
@@ -77,7 +77,7 @@ void                  g_tls_client_connection_set_use_ssl3         (GTlsClientCo
 GLIB_AVAILABLE_IN_ALL
 GList *               g_tls_client_connection_get_accepted_cas     (GTlsClientConnection    *conn);
 
-GLIB_AVAILABLE_IN_2_46
+GLIB_DEPRECATED_IN_2_62
 void                  g_tls_client_connection_copy_session_state   (GTlsClientConnection    *conn,
                                                                     GTlsClientConnection    *source);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]