glibmm
2.35.8
|
TlsDatabase - TLS database type. More...
#include <giomm/tlsdatabase.h>
Public Member Functions | |
virtual | ~TlsDatabase () |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
Verify's 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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
A verify_chain() convenience overload. More... | |
TlsCertificateFlags | verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< const SocketConnectable >& identity, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
A verify_chain() convenience overload. More... | |
TlsCertificateFlags | verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< TlsInteraction >& interaction, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
A verify_chain() convenience overload. More... | |
TlsCertificateFlags | verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
A verify_chain() convenience overload. More... | |
TlsCertificateFlags | verify_chain (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
Asynchronously verify's 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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
A verify_chain_async() convenience overload. More... | |
void | verify_chain_async (const Glib::RefPtr< TlsCertificate >& chain, const Glib::ustring& purpose, const SlotAsyncReady& slot, TlsDatabaseVerifyFlags flags=TLS_DATABASE_VERIFY_NONE) |
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< TlsCertificate > | lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
Lookup the issuer of certificate in the database. More... | |
Glib::RefPtr< TlsCertificate > | lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
A lookup_certificate_issuer() convenience overload. More... | |
Glib::RefPtr< const TlsCertificate > | lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) const |
Lookup the issuer of certificate in the database. More... | |
Glib::RefPtr< const TlsCertificate > | lookup_certificate_issuer (const Glib::RefPtr< const TlsCertificate >& certificate, const Glib::RefPtr< TlsInteraction >& interaction, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_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, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_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, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
A lookup_certificate_issuer_async() convenience overload. More... | |
Glib::RefPtr< TlsCertificate > | lookup_certificate_issuer_finish (const Glib::RefPtr< AsyncResult >& result) |
Finish an asynchronous lookup issuer operation. More... | |
Glib::ustring | create_certificate_handle (const Glib::RefPtr< const TlsCertificate >& certificate) const |
Create a handle string for the certificate. More... | |
Glib::RefPtr< TlsCertificate > | lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
Lookup a certificate by its handle. More... | |
Glib::RefPtr< TlsCertificate > | lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
A lookup_certificate_for_handle() convenience overload. More... | |
Glib::RefPtr< const TlsCertificate > | lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, const Glib::RefPtr< Cancellable >& cancellable, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) const |
Lookup a certificate by its handle. More... | |
Glib::RefPtr< const TlsCertificate > | lookup_certificate_for_handle (const Glib::ustring& handle, const Glib::RefPtr< TlsInteraction >& interaction, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_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, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_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, TlsDatabaseLookupFlags flags=TLS_DATABASE_LOOKUP_NONE) |
A lookup_certificate_for_handle_async() convenience overload. More... | |
Glib::RefPtr< TlsCertificate > | lookup_certificate_for_handle_finish (const Glib::RefPtr< AsyncResult >& result) |
Finish an asynchronous lookup of a certificate by its handle. More... | |
![]() | |
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) |
![]() | |
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... | |
void | 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, but this is necessary when using the reduced API. More... | |
sigc::connection | connect_property_changed_with_return (const Glib::ustring& property_name, const sigc::slot< void >& slot) |
You can use the signal_changed() signal of the property proxy instead, but this is necessary when using the reduced API. 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... | |
![]() | |
virtual | ~TlsFileDatabase () |
GTlsFileDatabase* | gobj () |
Provides access to the underlying C GObject. More... | |
const GTlsFileDatabase* | gobj () const |
Provides access to the underlying C GObject. More... | |
Glib::PropertyProxy < Glib::ustring > | property_anchors () |
The certificate authority anchor file. More... | |
Glib::PropertyProxy_ReadOnly < Glib::ustring > | property_anchors () const |
The certificate authority anchor file. More... | |
![]() | |
Interface (const Glib::Interface_Class& interface_class) | |
Called by constructors of derived classes. More... | |
Interface (GObject* castitem) | |
Called by constructors of derived classes. More... | |
virtual | ~Interface () |
GObject* | gobj () |
const GObject* | gobj () const |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
![]() | |
static void | add_interface (GType gtype_implementer) |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
Protected Member Functions | |
TlsDatabase () | |
![]() | |
Object () | |
Object (const Glib::ConstructParams& construct_params) | |
Object (GObject* castitem) | |
virtual | ~Object () |
![]() | |
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... | |
virtual | ~ObjectBase ()=0 |
void | initialize (GObject* castitem) |
![]() | |
TlsFileDatabase () | |
You should derive from this class to use it. More... | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr< Gio::TlsDatabase > | wrap (GTlsDatabase* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
![]() | |
Glib::RefPtr< Glib::Object > | wrap (GObject* object, bool take_copy=false) |
![]() | |
Glib::RefPtr < Gio::TlsFileDatabase > | wrap (GTlsFileDatabase* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Additional Inherited Members | |
![]() | |
typedef void(* | DestroyNotify )(gpointer data) |
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.
|
virtual |
|
protected |
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, 0
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.
certificate | Certificate for which to create a handle. |
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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 0
will be returned.
This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform the lookup operation asynchronously.
handle | A certificate handle. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup. |
cancellable | A Cancellable, or 0 . |
0
. Use Glib::object_unref() to release the certificate. Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle | ( | const Glib::ustring& | handle, |
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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 0
will be returned.
This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform the lookup operation asynchronously.
handle | A certificate handle. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup. |
cancellable | A Cancellable, or 0 . |
0
. Use Glib::object_unref() to release the certificate. Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_for_handle | ( | const Glib::ustring& | handle, |
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) |
Asynchronously lookup a certificate by its handle in the database.
See g_tls_database_lookup_certificate_for_handle() for more information.
handle | A certificate handle. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup. |
cancellable | A Cancellable, or 0 . |
slot | Callback 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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) |
A lookup_certificate_for_handle_async() convenience overload.
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_handle() for more information.
If the handle is no longer valid, or does not point to a certificate in this database, then 0
will be returned.
result | A AsyncResult. |
Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer | ( | const Glib::RefPtr< const TlsCertificate >& | certificate, |
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
const Glib::RefPtr< Cancellable >& | cancellable, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) |
Lookup the issuer of certificate in the database.
The 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.
certificate | A TlsCertificate. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup operation. |
cancellable | A Cancellable, or 0 . |
0
. Use Glib::object_unref() to release the certificate. Glib::RefPtr<TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer | ( | const Glib::RefPtr< const TlsCertificate >& | certificate, |
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) | const |
Lookup the issuer of certificate in the database.
The 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.
certificate | A TlsCertificate. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup operation. |
cancellable | A Cancellable, or 0 . |
0
. Use Glib::object_unref() to release the certificate. Glib::RefPtr<const TlsCertificate> Gio::TlsDatabase::lookup_certificate_issuer | ( | const Glib::RefPtr< const TlsCertificate >& | certificate, |
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) |
Asynchronously lookup the issuer of certificate in the database.
See g_tls_database_lookup_certificate_issuer() for more information.
certificate | A TlsCertificate. |
interaction | Used to interact with the user if necessary. |
flags | Flags which affect the lookup operation. |
cancellable | A Cancellable, or 0 . |
slot | Callback 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, | ||
TlsDatabaseLookupFlags | flags = TLS_DATABASE_LOOKUP_NONE |
||
) |
A lookup_certificate_issuer_async() convenience overload.
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.
result | A AsyncResult. |
0
. Use Glib::object_unref() to release the certificate. 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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
Verify's 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 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 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 TLS_DATABASE_VERIFY_NONE should be used.
This function can block, use g_tls_database_verify_chain_async() to perform the verification operation asynchronously.
chain | A TlsCertificate chain. |
purpose | The purpose that this certificate chain will be used for. |
identity | The expected peer identity. |
interaction | Used to interact with the user if necessary. |
flags | Additional verify flags. |
cancellable | A Cancellable, or 0 . |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
A verify_chain() convenience overload.
TlsCertificateFlags Gio::TlsDatabase::verify_chain | ( | const Glib::RefPtr< TlsCertificate >& | chain, |
const Glib::ustring& | purpose, | ||
const Glib::RefPtr< TlsInteraction >& | interaction, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
A verify_chain() convenience overload.
TlsCertificateFlags Gio::TlsDatabase::verify_chain | ( | const Glib::RefPtr< TlsCertificate >& | chain, |
const Glib::ustring& | purpose, | ||
const Glib::RefPtr< Cancellable >& | cancellable, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
A verify_chain() convenience overload.
TlsCertificateFlags Gio::TlsDatabase::verify_chain | ( | const Glib::RefPtr< TlsCertificate >& | chain, |
const Glib::ustring& | purpose, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
Asynchronously verify's a certificate chain after looking up and adding any missing certificates to the chain.
See g_tls_database_verify_chain() for more information.
chain | A TlsCertificate chain. |
purpose | The purpose that this certificate chain will be used for. |
identity | The expected peer identity. |
interaction | Used to interact with the user if necessary. |
flags | Additional verify flags. |
cancellable | A Cancellable, or 0 . |
slot | Callback 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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
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, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
A verify_chain_async() convenience overload.
void Gio::TlsDatabase::verify_chain_async | ( | const Glib::RefPtr< TlsCertificate >& | chain, |
const Glib::ustring& | purpose, | ||
const SlotAsyncReady& | slot, | ||
TlsDatabaseVerifyFlags | flags = TLS_DATABASE_VERIFY_NONE |
||
) |
A verify_chain_async() convenience overload.
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. *
result | A AsyncResult. |
|
related |
A Glib::wrap() method for this object.
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |