glibmm: Gio::TlsDatabase Class Reference

TlsDatabase - TLS database type. More...

#include </home/kjell/checkout/gnome/glibmm/gio/giomm/tlsdatabase.h>

Inheritance diagram for Gio::TlsDatabase:

Public Types

- Public Types inherited from Glib::Object
using DestroyNotify = void(*)(gpointer data)
 
- Public Types inherited from sigc::trackable
typedef internal::func_destroy_notify func_destroy_notify
 
- Public Types inherited from sigc::notifiable
typedef internal::func_destroy_notify func_destroy_notify
 

Public Member Functions

 TlsDatabase (TlsDatabase&& src) noexcept
 
TlsDatabaseoperator= (TlsDatabase&& src) noexcept
 
 ~TlsDatabase () noexcept override
 
GTlsDatabase* gobj ()
 Provides access to the underlying C GObject. More...

 
const GTlsDatabase* gobj () const
 Provides access to the underlying C GObject. More...

 
GTlsDatabase* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 Determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< TlsInteraction >& interaction, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
TlsCertificateFlags verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const SlotAsyncReady& slot, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
void verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const SlotAsyncReady& slot, VerifyFlags flags=VerifyFlags::NONE) const
 A verify_chain_async() convenience overload. More...

 
TlsCertificateFlags verify_chain_finish (const Glib::RefPtr< AsyncResult >& result)
 Finish an asynchronous verify chain operation. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Lookup the issuer of certificate in the database. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 Lookup the issuer of certificate in the database. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_issuer() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_issuer() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_issuer() convenience overload. More...

 
void lookup_certificate_issuer_async (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Asynchronously lookup the issuer of certificate in the database. More...

 
void lookup_certificate_issuer_async (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer_async() convenience overload. More...

 
void lookup_certificate_issuer_async (const Glib::RefPtr< const TlsCertificate >& certificate, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer_async() convenience overload. More...

 
void lookup_certificate_issuer_async (const Glib::RefPtr< const TlsCertificate >& certificate, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_issuer_async() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_issuer_finish (const Glib::RefPtr< AsyncResult >& result)
 Finish an asynchronous lookup issuer operation. More...

 
std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Lookup certificates issued by this issuer in the database. More...

 
std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by() convenience overload. More...

 
std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by() convenience overload. More...

 
std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by() convenience overload. More...

 
std::vector< Glib::RefPtr< const TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 Lookup certificates issued by this issuer in the database. More...

 
std::vector< Glib::RefPtr< const TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificates_issued_by() convenience overload. More...

 
std::vector< Glib::RefPtr< const TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificates_issued_by() convenience overload. More...

 
std::vector< Glib::RefPtr< const TlsCertificate > > lookup_certificates_issued_by (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificates_issued_by() convenience overload. More...

 
void lookup_certificates_issued_by_async (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Asynchronously lookup certificates issued by this issuer in the database. More...

 
void lookup_certificates_issued_by_async (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by_async() convenience overload. More...

 
void lookup_certificates_issued_by_async (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by_async() convenience overload. More...

 
void lookup_certificates_issued_by_async (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificates_issued_by_async() convenience overload. More...

 
std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by_finish (const Glib::RefPtr< AsyncResult >& result)
 Finish an asynchronous lookup of certificates. More...

 
Glib::ustring create_certificate_handle (const Glib::RefPtr< const TlsCertificate >& certificate) const
 Create a handle string for the certificate. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Lookup a certificate by its handle. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 Lookup a certificate by its handle. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_for_handle() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_for_handle() convenience overload. More...

 
Glib::RefPtr< const TlsCertificatelookup_certificate_for_handle (const Glib::ustring& handle, LookupFlags flags=LookupFlags::NONE) const
 A lookup_certificate_for_handle() convenience overload. More...

 
void lookup_certificate_for_handle_async (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 Asynchronously lookup a certificate by its handle in the database. More...

 
void lookup_certificate_for_handle_async (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle_async() convenience overload. More...

 
void lookup_certificate_for_handle_async (const Glib::ustring& handle, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle_async() convenience overload. More...

 
void lookup_certificate_for_handle_async (const Glib::ustring& handle, const SlotAsyncReady& slot, LookupFlags flags=LookupFlags::NONE)
 A lookup_certificate_for_handle_async() convenience overload. More...

 
Glib::RefPtr< TlsCertificatelookup_certificate_for_handle_finish (const Glib::RefPtr< AsyncResult >& result)
 Finish an asynchronous lookup of a certificate by its handle. More...

 
- Public Member Functions inherited from Glib::Object
 Object (const Object&)=delete
 
Objectoperator= (const Object&)=delete
 
 Object (Object&& src) noexcept
 
Objectoperator= (Object&& src) noexcept
 
void* get_data (const QueryQuark& key)
 
void set_data (const Quark& key, void* data)
 
void set_data (const Quark& key, void* data, DestroyNotify notify)
 
void remove_data (const QueryQuark& quark)
 
void* steal_data (const QueryQuark& quark)
 
- Public Member Functions inherited from Glib::ObjectBase
 ObjectBase (const ObjectBase&)=delete
 
ObjectBaseoperator= (const ObjectBase&)=delete
 
void set_property_value (const Glib::ustring& property_name, const Glib::ValueBase& value)
 You probably want to use a specific property_*() accessor method instead. More...

 
void get_property_value (const Glib::ustring& property_name, Glib::ValueBase& value) const
 You probably want to use a specific property_*() accessor method instead. More...

 
template<class PropertyType >
void set_property (const Glib::ustring& property_name, const PropertyType& value)
 You probably want to use a specific property_*() accessor method instead. More...

 
template<class PropertyType >
void get_property (const Glib::ustring& property_name, PropertyType& value) const
 You probably want to use a specific property_*() accessor method instead. More...

 
template<class PropertyType >
PropertyType get_property (const Glib::ustring& property_name) const
 You probably want to use a specific property_*() accessor method instead. More...

 
sigc::connection connect_property_changed (const Glib::ustring& property_name, const sigc::slot< void()>& slot)
 You can use the signal_changed() signal of the property proxy instead. More...

 
sigc::connection connect_property_changed (const Glib::ustring& property_name, sigc::slot< void()>&& slot)
 You can use the signal_changed() signal of the property proxy instead. More...

 
void freeze_notify ()
 Increases the freeze count on object. More...

 
void thaw_notify ()
 Reverts the effect of a previous call to freeze_notify(). More...

 
virtual void reference () const
 Increment the reference count for this object. More...

 
virtual void unreference () const
 Decrement the reference count for this object. More...

 
GObject* gobj ()
 Provides access to the underlying C GObject. More...

 
const GObject* gobj () const
 Provides access to the underlying C GObject. More...

 
GObject* gobj_copy () const
 Give a ref-ed copy to someone. Use for direct struct access. More...

 
- Public Member Functions inherited from sigc::trackable
 trackable () noexcept
 
 trackable (const trackable &src) noexcept
 
 trackable (trackable &&src) noexcept
 
 ~trackable ()
 
void add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const
 
void notify_callbacks ()
 
trackableoperator= (const trackable &src)
 
trackableoperator= (trackable &&src) noexcept
 
void remove_destroy_notify_callback (notifiable *data) const
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...

 

Protected Member Functions

 TlsDatabase ()
 
virtual TlsCertificateFlags verify_chain_vfunc (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags) const
 
virtual void verify_chain_async_vfunc (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, VerifyFlags flags) const
 
virtual TlsCertificateFlags verify_chain_finish_vfunc (const Glib::RefPtr< AsyncResult >& result)
 
virtual Glib::ustring create_certificate_handle_vfunc (const Glib::RefPtr< const TlsCertificate >& certificate) const
 
virtual Glib::RefPtr< TlsCertificatelookup_certificate_for_handle_vfunc (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual void lookup_certificate_for_handle_async_vfunc (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual Glib::RefPtr< TlsCertificatelookup_certificate_for_handle_finish_vfunc (const Glib::RefPtr< AsyncResult >& result)
 
virtual Glib::RefPtr< TlsCertificatelookup_certificate_issuer_vfunc (const Glib::RefPtr< TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual void lookup_certificate_issuer_async_vfunc (const Glib::RefPtr< TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual Glib::RefPtr< TlsCertificatelookup_certificate_issuer_finish_vfunc (const Glib::RefPtr< AsyncResult >& result)
 
virtual std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by_vfunc (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual void lookup_certificates_issued_by_async_vfunc (const Glib::RefPtr< Glib::ByteArray >& issuer_raw_dn, const Glib::RefPtr< TlsInteraction >& interaction, const SlotAsyncReady& slot, const Glib::RefPtr< Cancellable >& cancellable, LookupFlags flags)
 
virtual std::vector< Glib::RefPtr< TlsCertificate > > lookup_certificates_issued_by_finish_vfunc (const Glib::RefPtr< AsyncResult >& result)
 
- Protected Member Functions inherited from Glib::Object
 Object ()
 
 Object (const Glib::ConstructParams& construct_params)
 
 Object (GObject* castitem)
 
 ~Object () noexcept override
 
- Protected Member Functions inherited from Glib::ObjectBase
 ObjectBase ()
 This default constructor is called implicitly from the constructor of user-derived classes, even if, for instance, Gtk::Button calls a different ObjectBase constructor. More...

 
 ObjectBase (const char* custom_type_name)
 A derived constructor always overrides this choice. More...

 
 ObjectBase (const std::type_info& custom_type_info)
 This constructor is a special feature to allow creation of derived types on the fly, without having to use g_object_new() manually. More...

 
 ObjectBase (ObjectBase&& src) noexcept
 
ObjectBaseoperator= (ObjectBase&& src) noexcept
 
virtual ~ObjectBase () noexcept=0
 
void initialize (GObject* castitem)
 
void initialize_move (GObject* castitem, Glib::ObjectBase* previous_wrapper)
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gio::TlsDatabasewrap (GTlsDatabase* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...

 

Detailed Description

TlsDatabase - TLS database type.

TlsDatabase is used to lookup certificates and other information from a certificate or key store. It is an abstract base class which TLS library specific subtypes override.

Most common client applications will not directly interact with TlsDatabase. It is used internally by TlsConnection.

Since glibmm 2.36:

Constructor & Destructor Documentation

Gio::TlsDatabase::TlsDatabase ( TlsDatabase&&  src)
noexcept
Gio::TlsDatabase::~TlsDatabase ( )
overridenoexcept
Gio::TlsDatabase::TlsDatabase ( )
protected

Member Function Documentation

Glib::ustring Gio::TlsDatabase::create_certificate_handle ( const Glib::RefPtr< const TlsCertificate >&  certificate) const

Create a handle string for the certificate.

The database will only be able to create a handle for certificates that originate from the database. In cases where the database cannot create a handle for a certificate, nullptr will be returned.

This handle should be stable across various instances of the application, and between applications. If a certificate is modified in the database, then it is not guaranteed that this handle will continue to point to it.

Since glibmm 2.30:
Parameters
certificateCertificate for which to create a handle.
Returns
A newly allocated string containing the handle.
virtual Glib::ustring Gio::TlsDatabase::create_certificate_handle_vfunc ( const Glib::RefPtr< const TlsCertificate >&  certificate) const
protectedvirtual
static GType Gio::TlsDatabase::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

GTlsDatabase* Gio::TlsDatabase::gobj ( )
inline

Provides access to the underlying C GObject.

const GTlsDatabase* Gio::TlsDatabase::gobj ( ) const
inline

Provides access to the underlying C GObject.

GTlsDatabase* Gio::TlsDatabase::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Lookup a certificate by its handle.

The handle should have been created by calling g_tls_database_create_certificate_handle() on a TlsDatabase object of the same TLS backend. The handle is designed to remain valid across instantiations of the database.

If the handle is no longer valid, or does not point to a certificate in this database, then nullptr will be returned.

This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated TlsCertificate, or nullptr. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle() convenience overload.

Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle() convenience overload.

Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

Lookup a certificate by its handle.

The handle should have been created by calling g_tls_database_create_certificate_handle() on a TlsDatabase object of the same TLS backend. The handle is designed to remain valid across instantiations of the database.

If the handle is no longer valid, or does not point to a certificate in this database, then nullptr will be returned.

This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated TlsCertificate, or nullptr. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_for_handle() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_for_handle() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle ( const Glib::ustring handle,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_for_handle() convenience overload.

void Gio::TlsDatabase::lookup_certificate_for_handle_async ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Asynchronously lookup a certificate by its handle in the database.

See g_tls_database_lookup_certificate_for_handle() for more information.

Since glibmm 2.30:
Parameters
handleA certificate handle.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup.
cancellableA Cancellable, or nullptr.
slotCallback to call when the operation completes.
void Gio::TlsDatabase::lookup_certificate_for_handle_async ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle_async() convenience overload.

void Gio::TlsDatabase::lookup_certificate_for_handle_async ( const Glib::ustring handle,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle_async() convenience overload.

void Gio::TlsDatabase::lookup_certificate_for_handle_async ( const Glib::ustring handle,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_for_handle_async() convenience overload.

virtual void Gio::TlsDatabase::lookup_certificate_for_handle_async_vfunc ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle_finish ( const Glib::RefPtr< AsyncResult >&  result)

Finish an asynchronous lookup of a certificate by its handle.

See Glib::tls_database_lookup_certificate_by_handle() for more information.

If the handle is no longer valid, or does not point to a certificate in this database, then nullptr will be returned.

Since glibmm 2.30:
Parameters
resultA AsyncResult.
Returns
A newly allocated TlsCertificate object. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
virtual Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle_finish_vfunc ( const Glib::RefPtr< AsyncResult >&  result)
protectedvirtual
Exceptions
Glib::Error.
virtual Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle_vfunc ( const Glib::ustring handle,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
Exceptions
Glib::Error.
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Lookup the issuer of certificate in the database.

The TlsCertificate::property_issuer() property of certificate is not modified, and the two certificates are not hooked into a chain.

This function can block, use g_tls_database_lookup_certificate_issuer_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated issuer TlsCertificate, or nullptr. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer() convenience overload.

Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer() convenience overload.

Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

Lookup the issuer of certificate in the database.

The TlsCertificate::property_issuer() property of certificate is not modified, and the two certificates are not hooked into a chain.

This function can block, use g_tls_database_lookup_certificate_issuer_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated issuer TlsCertificate, or nullptr. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_issuer() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_issuer() convenience overload.

Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer ( const Glib::RefPtr< const TlsCertificate >&  certificate,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificate_issuer() convenience overload.

void Gio::TlsDatabase::lookup_certificate_issuer_async ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Asynchronously lookup the issuer of certificate in the database.

See g_tls_database_lookup_certificate_issuer() for more information.

Since glibmm 2.30:
Parameters
certificateA TlsCertificate.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
slotCallback to call when the operation completes.
void Gio::TlsDatabase::lookup_certificate_issuer_async ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer_async() convenience overload.

void Gio::TlsDatabase::lookup_certificate_issuer_async ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer_async() convenience overload.

void Gio::TlsDatabase::lookup_certificate_issuer_async ( const Glib::RefPtr< const TlsCertificate >&  certificate,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificate_issuer_async() convenience overload.

virtual void Gio::TlsDatabase::lookup_certificate_issuer_async_vfunc ( const Glib::RefPtr< TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer_finish ( const Glib::RefPtr< AsyncResult >&  result)

Finish an asynchronous lookup issuer operation.

See g_tls_database_lookup_certificate_issuer() for more information.

Since glibmm 2.30:
Parameters
resultA AsyncResult.
Returns
A newly allocated issuer TlsCertificate, or nullptr. Use Glib::object_unref() to release the certificate.
Exceptions
Glib::Error
virtual Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer_finish_vfunc ( const Glib::RefPtr< AsyncResult >&  result)
protectedvirtual
Exceptions
Glib::Error.
virtual Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer_vfunc ( const Glib::RefPtr< TlsCertificate >&  certificate,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
Exceptions
Glib::Error.
std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Lookup certificates issued by this issuer in the database.

This function can block, use g_tls_database_lookup_certificates_issued_by_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated list of TlsCertificate objects.
Exceptions
Glib::Error
std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by() convenience overload.

std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by() convenience overload.

std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by() convenience overload.

std::vector< Glib::RefPtr<const TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

Lookup certificates issued by this issuer in the database.

This function can block, use g_tls_database_lookup_certificates_issued_by_async() to perform the lookup operation asynchronously.

Since glibmm 2.30:
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
Returns
A newly allocated list of TlsCertificate objects.
Exceptions
Glib::Error
std::vector< Glib::RefPtr<const TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificates_issued_by() convenience overload.

std::vector< Glib::RefPtr<const TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificates_issued_by() convenience overload.

std::vector< Glib::RefPtr<const TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
LookupFlags  flags = LookupFlags::NONE 
) const

A lookup_certificates_issued_by() convenience overload.

void Gio::TlsDatabase::lookup_certificates_issued_by_async ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

Asynchronously lookup certificates issued by this issuer in the database.

See g_tls_database_lookup_certificates_issued_by() for more information.

The database may choose to hold a reference to the issuer byte array for the duration of of this asynchronous operation. The byte array should not be modified during this time.

Since glibmm 2.30:
Parameters
issuer_raw_dnA ByteArray which holds the DER encoded issuer DN.
interactionUsed to interact with the user if necessary.
flagsFlags which affect the lookup operation.
cancellableA Cancellable, or nullptr.
slotCallback to call when the operation completes.
void Gio::TlsDatabase::lookup_certificates_issued_by_async ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by_async() convenience overload.

void Gio::TlsDatabase::lookup_certificates_issued_by_async ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by_async() convenience overload.

void Gio::TlsDatabase::lookup_certificates_issued_by_async ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const SlotAsyncReady slot,
LookupFlags  flags = LookupFlags::NONE 
)

A lookup_certificates_issued_by_async() convenience overload.

virtual void Gio::TlsDatabase::lookup_certificates_issued_by_async_vfunc ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by_finish ( const Glib::RefPtr< AsyncResult >&  result)

Finish an asynchronous lookup of certificates.

See g_tls_database_lookup_certificates_issued_by() for more information.

Since glibmm 2.30:
Parameters
resultA AsyncResult.
Returns
A newly allocated list of TlsCertificate objects.
Exceptions
Glib::Error
virtual std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by_finish_vfunc ( const Glib::RefPtr< AsyncResult >&  result)
protectedvirtual
Exceptions
Glib::Error.
virtual std::vector< Glib::RefPtr<TlsCertificate> > Gio::TlsDatabase::lookup_certificates_issued_by_vfunc ( const Glib::RefPtr< Glib::ByteArray >&  issuer_raw_dn,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
LookupFlags  flags 
)
protectedvirtual
Exceptions
Glib::Error.
TlsDatabase& Gio::TlsDatabase::operator= ( TlsDatabase&&  src)
noexcept
TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

Determines the validity of a certificate chain after looking up and adding any missing certificates to the chain.

chain is a chain of TlsCertificate objects each pointing to the next certificate in the chain by its TlsCertificate::property_issuer() property. The chain may initially consist of one or more certificates. After the verification process is complete, chain may be modified by adding missing certificates, or removing extra certificates. If a certificate anchor was found, then it is added to the chain.

purpose describes the purpose (or usage) for which the certificate is being used. Typically purpose will be set to G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER which means that the certificate is being used to authenticate a server (and we are acting as the client).

The identity is used to check for pinned certificates (trust exceptions) in the database. These will override the normal verification process on a host by host basis.

Currently there are no flags, and Gio::TlsDatabaseVerifyFlags::NONE should be used.

If chain is found to be valid, then the return value will be 0. If chain is found to be invalid, then the return value will indicate the problems found. If the function is unable to determine whether chain is valid or not (eg, because cancellable is triggered before it completes) then the return value will be Gio::TlsCertificateFlags::GENERIC_ERROR and error will be set accordingly. error is not set when chain is successfully analyzed but found to be invalid.

This function can block, use g_tls_database_verify_chain_async() to perform the verification operation asynchronously.

Since glibmm 2.30:
Parameters
chainA TlsCertificate chain.
purposeThe purpose that this certificate chain will be used for.
identityThe expected peer identity.
interactionUsed to interact with the user if necessary.
flagsAdditional verify flags.
cancellableA Cancellable, or nullptr.
Returns
The appropriate TlsCertificateFlags which represents the result of verification.
Exceptions
Glib::Error
TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< TlsInteraction >&  interaction,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

TlsCertificateFlags Gio::TlsDatabase::verify_chain ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain.

See g_tls_database_verify_chain() for more information.

Since glibmm 2.30:
Parameters
chainA TlsCertificate chain.
purposeThe purpose that this certificate chain will be used for.
identityThe expected peer identity.
interactionUsed to interact with the user if necessary.
flagsAdditional verify flags.
cancellableA Cancellable, or nullptr.
slotCallback to call when the operation completes.
void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const SlotAsyncReady slot,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

void Gio::TlsDatabase::verify_chain_async ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const SlotAsyncReady slot,
VerifyFlags  flags = VerifyFlags::NONE 
) const

A verify_chain_async() convenience overload.

virtual void Gio::TlsDatabase::verify_chain_async_vfunc ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
const SlotAsyncReady slot,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags 
) const
protectedvirtual
TlsCertificateFlags Gio::TlsDatabase::verify_chain_finish ( const Glib::RefPtr< AsyncResult >&  result)

Finish an asynchronous verify chain operation.

See g_tls_database_verify_chain() for more information.

If chain is found to be valid, then the return value will be 0. If chain is found to be invalid, then the return value will indicate the problems found. If the function is unable to determine whether chain is valid or not (eg, because cancellable is triggered before it completes) then the return value will be Gio::TlsCertificateFlags::GENERIC_ERROR and error will be set accordingly. error is not set when chain is successfully analyzed but found to be invalid.

Since glibmm 2.30:
Parameters
resultA AsyncResult.
Returns
The appropriate TlsCertificateFlags which represents the result of verification.
Exceptions
Glib::Error
virtual TlsCertificateFlags Gio::TlsDatabase::verify_chain_finish_vfunc ( const Glib::RefPtr< AsyncResult >&  result)
protectedvirtual
Exceptions
Glib::Error.
virtual TlsCertificateFlags Gio::TlsDatabase::verify_chain_vfunc ( const Glib::RefPtr< TlsCertificate >&  chain,
const Glib::ustring purpose,
const Glib::RefPtr< const SocketConnectable >&  identity,
const Glib::RefPtr< TlsInteraction >&  interaction,
const Glib::RefPtr< Cancellable >&  cancellable,
VerifyFlags  flags 
) const
protectedvirtual
Exceptions
Glib::Error.

Friends And Related Function Documentation

Glib::RefPtr< Gio::TlsDatabase > wrap ( GTlsDatabase *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.