Virtual Method

GioTlsDatabaseverify_chain_finish

Declaration

GTlsCertificateFlags
verify_chain_finish (
  GTlsDatabase* self,
  GAsyncResult* result,
  GError** error
)

Description

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 G_TLS_CERTIFICATE_GENERIC_ERROR and error will be set accordingly. error is not set when chain is successfully analyzed but found to be invalid.

Available since:2.30

Parameters

result GAsyncResult
 

A GAsyncResult.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GTlsCertificateFlags
 

The appropriate GTlsCertificateFlags which represents the result of verification.