[glibmm/glibmm-2-60] Gio::TlsClientConnection: Deprecate property_accepted_cas()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-60] Gio::TlsClientConnection: Deprecate property_accepted_cas()
- Date: Mon, 18 Mar 2019 17:29:48 +0000 (UTC)
commit 19f83b92643f7f38c3c5e2e699488024813a33e7
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Mar 18 16:55:42 2019 +0100
Gio::TlsClientConnection: Deprecate property_accepted_cas()
It does not work because there is no suitable Glib::Value<T> specialization.
get_accepted_cas() can be used instead.
gio/src/tlsclientconnection.hg | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/src/tlsclientconnection.hg b/gio/src/tlsclientconnection.hg
index c1e338f7..5937a82d 100644
--- a/gio/src/tlsclientconnection.hg
+++ b/gio/src/tlsclientconnection.hg
@@ -71,7 +71,10 @@ public:
_WRAP_METHOD(void copy_session_state(const Glib::RefPtr<TlsClientConnection>& source),
g_tls_client_connection_copy_session_state)
- _WRAP_PROPERTY("accepted-cas", std::vector< Glib::RefPtr<Glib::ByteArray> >)
+ // property_accepted_cas() won't work unless a Glib::Value<std::vector<Glib::RefPtr<Glib::ByteArray>>>
+ // specialization is added. Workaround: Use get_accepted_cas().
+ _WRAP_PROPERTY("accepted-cas", std::vector< Glib::RefPtr<Glib::ByteArray> >,
+ deprecated "property_accepted_cas() does not work. Use get_accepted_cas() instead.")
_WRAP_PROPERTY("server-identity", Glib::RefPtr<SocketConnectable>)
_WRAP_PROPERTY("use-ssl3", bool, deprecated "SSL 3.0 is insecure, and this property does not generally
enable or disable it, despite its name.")
_WRAP_PROPERTY("validation-flags", TlsCertificateFlags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]