diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2013-03-21 23:57:57 -0400 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2013-03-21 23:57:57 -0400 |
commit | a270ba1b7d7ac70e3fb5150ecb8c6f0a645edcc2 (patch) | |
tree | 36ebb150e00dca56f872e711964413567dcc4c88 /gio/src/tlscertificate.hg | |
parent | 7cae174caae21b35c91e70de3da1b9667d185d74 (diff) | |
download | glibmm-a270ba1b7d7ac70e3fb5150ecb8c6f0a645edcc2.tar.gz |
TlsCertificate: Wrap its single virtual function.
* gio/src/tlscertificate.hg: Wrap the "verify" virtual function. Also
add a default value to the length parameter of the constructor
accepting a data character array.
* gio/src/gio_vfuncs.defs: Add the virtual function definition so that
it is recognized.
Diffstat (limited to 'gio/src/tlscertificate.hg')
-rw-r--r-- | gio/src/tlscertificate.hg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gio/src/tlscertificate.hg b/gio/src/tlscertificate.hg index a1ff3684..ec3b292a 100644 --- a/gio/src/tlscertificate.hg +++ b/gio/src/tlscertificate.hg @@ -46,7 +46,7 @@ class TlsCertificate : public Glib::Object _CLASS_GOBJECT(TlsCertificate, GTlsCertificate, G_TLS_CERTIFICATE, Glib::Object, GObject) protected: - _WRAP_CTOR(TlsCertificate(const char* data, gssize length), g_tls_certificate_new_from_pem, errthrow) + _WRAP_CTOR(TlsCertificate(const char* data, gssize length = -1), g_tls_certificate_new_from_pem, errthrow) _WRAP_CTOR(TlsCertificate(const std::string& file), g_tls_certificate_new_from_file, errthrow) _WRAP_CTOR(TlsCertificate(const std::string& cert_file, const std::string& key_file), g_tls_certificate_new_from_files, errthrow) @@ -78,6 +78,10 @@ public: // Write-only and construct-only //_WRAP_PROPERTY("private-key-pem", char*) + +#m4 _CONVERSION(`GSocketConnectable*',`const Glib::RefPtr<const SocketConnectable>&',`Glib::wrap($3, true)') +#m4 _CONVERSION(`GTlsCertificate*',`const Glib::RefPtr<const TlsCertificate>&',`Glib::wrap($3, true)') + _WRAP_VFUNC(TlsCertificateFlags verify(const Glib::RefPtr<const SocketConnectable>& identity, const Glib::RefPtr<const TlsCertificate>& trusted_ca) const, "verify") }; } // namespace Gio |