[glibmm] Gio::Tls*: Correct some referencing errors.



commit 9bd358d51ac14451a508c4bd01f8fb7a7c81ee9c
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Wed Mar 27 00:53:58 2013 -0400

    Gio::Tls*: Correct some referencing errors.
    
        * gio/src/tlscertificate.hg (get_issuer):
        * gio/src/tlsclientconnection.hg (get_server_identity):
        * gio/src/tlsconnection.hg (get*_certificate): Use refreturn in the
        wrapping of these because the C API does not reference the object when
        returning it.

 ChangeLog                      |   10 ++++++++++
 gio/src/tlscertificate.hg      |    2 +-
 gio/src/tlsclientconnection.hg |    2 +-
 gio/src/tlsconnection.hg       |    4 ++--
 4 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index aa3182d..b3dcf72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2013-03-27  José Alburquerque  <jaalburquerque gmail com>
 
+       Gio::Tls*: Correct some referencing errors.
+
+       * gio/src/tlscertificate.hg (get_issuer):
+       * gio/src/tlsclientconnection.hg (get_server_identity):
+       * gio/src/tlsconnection.hg (get*_certificate): Use refreturn in the
+       wrapping of these because the C API does not reference the object when
+       returning it.
+
+2013-03-27  José Alburquerque  <jaalburquerque gmail com>
+
        giomm.h: Also remove the tlsfiledatabase.h include.
 
        * gio/giomm.h: Remove the include from here so that make check will
diff --git a/gio/src/tlscertificate.hg b/gio/src/tlscertificate.hg
index ec3b292..9a0a61c 100644
--- a/gio/src/tlscertificate.hg
+++ b/gio/src/tlscertificate.hg
@@ -63,7 +63,7 @@ public:
 #m4 _CONVERSION(`GList*', `std::vector< Glib::RefPtr<TlsCertificate> >', `Glib::ListHandler< 
Glib::RefPtr<TlsCertificate> >::list_to_vector($3, Glib::OWNERSHIP_DEEP)')
   _WRAP_METHOD(static std::vector< Glib::RefPtr<TlsCertificate> > create_list_from_file(const std::string& 
file), g_tls_certificate_list_new_from_file, errthrow)
 
-  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_issuer(), g_tls_certificate_get_issuer)
+  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_issuer(), g_tls_certificate_get_issuer, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const TlsCertificate> get_issuer() const, g_tls_certificate_get_issuer, 
constversion)
 
   _WRAP_METHOD(TlsCertificateFlags verify(const Glib::RefPtr<const SocketConnectable>& identity{?}, const 
Glib::RefPtr<const TlsCertificate>& trusted_ca{?}) const, g_tls_certificate_verify)
diff --git a/gio/src/tlsclientconnection.hg b/gio/src/tlsclientconnection.hg
index 07c749e..20c8a50 100644
--- a/gio/src/tlsclientconnection.hg
+++ b/gio/src/tlsclientconnection.hg
@@ -51,7 +51,7 @@ public:
 
   _WRAP_METHOD(void set_server_identity(const Glib::RefPtr<SocketConnectable>& identity), 
g_tls_client_connection_set_server_identity)
 
-  _WRAP_METHOD(Glib::RefPtr<SocketConnectable> get_server_identity(), 
g_tls_client_connection_get_server_identity)
+  _WRAP_METHOD(Glib::RefPtr<SocketConnectable> get_server_identity(), 
g_tls_client_connection_get_server_identity, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const SocketConnectable> get_server_identity() const, 
g_tls_client_connection_get_server_identity, constversion)
 
   _WRAP_METHOD(void set_validation_flags(TlsCertificateFlags flags), 
g_tls_client_connection_set_validation_flags)
diff --git a/gio/src/tlsconnection.hg b/gio/src/tlsconnection.hg
index 8740f7e..69ff724 100644
--- a/gio/src/tlsconnection.hg
+++ b/gio/src/tlsconnection.hg
@@ -48,10 +48,10 @@ protected:
 public:
   _WRAP_METHOD(void set_certificate(const Glib::RefPtr<TlsCertificate>& certificate), 
g_tls_connection_set_certificate)
 
-  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_certificate(), g_tls_connection_get_certificate)
+  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_certificate(), g_tls_connection_get_certificate, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const TlsCertificate> get_certificate() const, g_tls_connection_get_certificate, 
constversion)
 
-  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_peer_certificate(), g_tls_connection_get_peer_certificate)
+  _WRAP_METHOD(Glib::RefPtr<TlsCertificate> get_peer_certificate(), g_tls_connection_get_peer_certificate, 
refreturn)
   _WRAP_METHOD(Glib::RefPtr<const TlsCertificate> get_peer_certificate() const, 
g_tls_connection_get_peer_certificate, constversion)
 
   _WRAP_METHOD(TlsCertificateFlags get_peer_certificate_errors() const, 
g_tls_connection_get_peer_certificate_errors)


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