diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-10-05 10:57:19 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-10-05 10:57:19 +0200 |
commit | a4dba878ffa79c044b16eeb9172fcdc8818925f4 (patch) | |
tree | 7bdbeb3cd175a04836984fb0675b4c85acec3c3e /gio/src/tlsconnection.hg | |
parent | f042c043a776e72ab95f4efa626ce942b5fc1c19 (diff) | |
download | glibmm-a4dba878ffa79c044b16eeb9172fcdc8818925f4.tar.gz |
Glib, Gio: Add some methods for glibmm 2.70
* configure.ac:
* meson.build: Require glib-2.0 >= 2.69.1.
* glib/src/binding.[ccg|hg]: Add dup_source(), dup_target(),
Deprecate get_source(), get_target().
* glib/src/spawn.[ccg|hg]: Change parameter name, exit_status to wait_status.
* glib/src/timezone.[ccg|hg]: Add operator bool(), create_identifier().
Deprecate create().
* gio/src/fileinfo.hg: Add get/set_access_date(), get/set_creation_date().
* gio/src/notification.hg: Add set_category().
* gio/src/tlscertificate.hg: Add property/get_not_valid_before(),
property/get_not_valid_after(), property/get_subject_name(),
property/get_issuer_name().
* gio/src/tlsconnection.hg: Add enum Gio::TlsProtocolVersion,
property/get_protocol_version(), property/get_ciphersuite_name().
* tools/m4/convert_gio.m4: Add conversion for enum TlsProtocolVersion.
Diffstat (limited to 'gio/src/tlsconnection.hg')
-rw-r--r-- | gio/src/tlsconnection.hg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/src/tlsconnection.hg b/gio/src/tlsconnection.hg index c7bcc832..c76c5dc1 100644 --- a/gio/src/tlsconnection.hg +++ b/gio/src/tlsconnection.hg @@ -25,6 +25,7 @@ _PINCLUDE(giomm/private/iostream_p.h) namespace Gio { +_WRAP_ENUM(TlsProtocolVersion, GTlsProtocolVersion, decl_prefix GIOMM_API) class GIOMM_API Cancellable; class GIOMM_API TlsDatabase; @@ -77,6 +78,9 @@ public: _WRAP_METHOD(void handshake_async(const SlotAsyncReady& slot{callback}, const Glib::RefPtr<Cancellable>& cancellable{.?}, int io_priority{.} = Glib::PRIORITY_DEFAULT), g_tls_connection_handshake_async, slot_name slot, slot_callback SignalProxy_async_callback) _WRAP_METHOD(bool handshake_finish(const Glib::RefPtr<AsyncResult>& result), g_tls_connection_handshake_finish, errthrow) + _WRAP_METHOD(TlsProtocolVersion get_protocol_version() const, g_tls_connection_get_protocol_version) + _WRAP_METHOD(Glib::ustring get_ciphersuite_name() const, g_tls_connection_get_ciphersuite_name) + _WRAP_METHOD(bool emit_accept_certificate(const Glib::RefPtr<const TlsCertificate>& peer_cert, TlsCertificateFlags errors), g_tls_connection_emit_accept_certificate) _WRAP_PROPERTY("base-io-stream", Glib::RefPtr<IOStream>) @@ -86,6 +90,8 @@ public: _WRAP_PROPERTY("peer-certificate", Glib::RefPtr<TlsCertificate>) _WRAP_PROPERTY("peer-certificate-errors", TlsCertificateFlags) _WRAP_PROPERTY("require-close-notify", bool) + _WRAP_PROPERTY("protocol-version", TlsProtocolVersion) + _WRAP_PROPERTY("ciphersuite-name", Glib::ustring) _IGNORE_PROPERTY("use-system-certdb", "rehandshake-mode")dnl // deprecated #m4 _CONVERSION(`GTlsCertificate*',`const Glib::RefPtr<const TlsCertificate>&',`Glib::wrap($3, true)') |