mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
gtlsdatabase: Don't complain if no callbacks for async functions
https://bugzilla.gnome.org/show_bug.cgi?id=681118
This commit is contained in:
parent
aaf6ac8321
commit
b913b0c29e
@ -220,8 +220,6 @@ g_tls_database_real_lookup_certificate_for_handle_async (GTlsDatabase
|
||||
GSimpleAsyncResult *res;
|
||||
AsyncLookupCertificateForHandle *args;
|
||||
|
||||
g_return_if_fail (callback != NULL);
|
||||
|
||||
args = g_slice_new0 (AsyncLookupCertificateForHandle);
|
||||
args->handle = g_strdup (handle);
|
||||
args->interaction = interaction ? g_object_ref (interaction) : NULL;
|
||||
@ -305,9 +303,6 @@ g_tls_database_real_lookup_certificate_issuer_async (GTlsDatabase *sel
|
||||
GSimpleAsyncResult *res;
|
||||
AsyncLookupCertificateIssuer *args;
|
||||
|
||||
g_return_if_fail (G_IS_TLS_CERTIFICATE (certificate));
|
||||
g_return_if_fail (callback != NULL);
|
||||
|
||||
args = g_slice_new0 (AsyncLookupCertificateIssuer);
|
||||
args->certificate = g_object_ref (certificate);
|
||||
args->flags = flags;
|
||||
@ -394,8 +389,6 @@ g_tls_database_real_lookup_certificates_issued_by_async (GTlsDatabase
|
||||
GSimpleAsyncResult *res;
|
||||
AsyncLookupCertificatesIssuedBy *args;
|
||||
|
||||
g_return_if_fail (callback);
|
||||
|
||||
args = g_slice_new0 (AsyncLookupCertificatesIssuedBy);
|
||||
args->issuer = g_byte_array_ref (issuer);
|
||||
args->flags = flags;
|
||||
|
Loading…
Reference in New Issue
Block a user