summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2019-03-18 12:49:17 +0100
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2019-03-18 12:49:17 +0100
commite77cc97dc8eb35dc4887d7379767149d81a1cd92 (patch)
tree8db83d217d69fab5f37f5d40626691b4cb11f6aa
parentfc402d67ee6ef35359979f35a2fd19e343d0361a (diff)
downloadglibmm-e77cc97dc8eb35dc4887d7379767149d81a1cd92.tar.gz
Gio::TlsConnection: Deprecate rehandshake API
-rw-r--r--gio/src/tlsconnection.ccg17
-rw-r--r--gio/src/tlsconnection.hg12
2 files changed, 6 insertions, 23 deletions
diff --git a/gio/src/tlsconnection.ccg b/gio/src/tlsconnection.ccg
index d41edbef..4ec8d7e4 100644
--- a/gio/src/tlsconnection.ccg
+++ b/gio/src/tlsconnection.ccg
@@ -19,20 +19,3 @@
#include <giomm/tlsdatabase.h>
#include <giomm/tlsinteraction.h>
#include "slot_async.h"
-
-namespace Gio
-{
-
-// Deprecated in glib 2.60, but not in glibmm 2.58.
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-void TlsConnection::set_rehandshake_mode(TlsRehandshakeMode mode)
-{
- g_tls_connection_set_rehandshake_mode(gobj(), ((GTlsRehandshakeMode)(mode)));
-}
-TlsRehandshakeMode TlsConnection::get_rehandshake_mode() const
-{
- return ((TlsRehandshakeMode)(g_tls_connection_get_rehandshake_mode(const_cast<GTlsConnection*>(gobj()))));
-}
-G_GNUC_END_IGNORE_DEPRECATIONS
-
-} // namespace Gio
diff --git a/gio/src/tlsconnection.hg b/gio/src/tlsconnection.hg
index f0c1bfff..142bd2b3 100644
--- a/gio/src/tlsconnection.hg
+++ b/gio/src/tlsconnection.hg
@@ -60,11 +60,10 @@ public:
_WRAP_METHOD(void set_require_close_notify(bool require_close_notify = true), g_tls_connection_set_require_close_notify)
_WRAP_METHOD(bool get_require_close_notify() const, g_tls_connection_get_require_close_notify)
- // Deprecated in glib 2.60, but not in glibmm 2.58.
- _WRAP_METHOD_DOCS_ONLY(g_tls_connection_set_rehandshake_mode)
- void set_rehandshake_mode(TlsRehandshakeMode mode);
- _WRAP_METHOD_DOCS_ONLY(g_tls_connection_get_rehandshake_mode)
- TlsRehandshakeMode get_rehandshake_mode() const;
+ _WRAP_METHOD(void set_rehandshake_mode(TlsRehandshakeMode mode), g_tls_connection_set_rehandshake_mode,
+ deprecated "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3.")
+ _WRAP_METHOD(TlsRehandshakeMode get_rehandshake_mode() const, g_tls_connection_get_rehandshake_mode,
+ deprecated "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3.")
_WRAP_METHOD(void set_use_system_certdb(bool use_system_certdb = true), g_tls_connection_set_use_system_certdb,
deprecated "Use set_database() instead.")
@@ -94,7 +93,8 @@ public:
_WRAP_PROPERTY("interaction", Glib::RefPtr<TlsInteraction>)
_WRAP_PROPERTY("peer-certificate", Glib::RefPtr<TlsCertificate>)
_WRAP_PROPERTY("peer-certificate-errors", TlsCertificateFlags)
- _WRAP_PROPERTY("rehandshake-mode", TlsRehandshakeMode)
+ _WRAP_PROPERTY("rehandshake-mode", TlsRehandshakeMode,
+ deprecated "Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3.")
_WRAP_PROPERTY("require-close-notify", bool)
_WRAP_PROPERTY("use-system-certdb", bool, deprecated "Use property_database() instead.")