Dex.tls_database_verify_chain
Description: Reference for Dex.tls_database_verify_chain

### Function

# Dextls_database_verify_chain

unstable since: 1.2

#### Declaration [src]

    DexFuture*
    dex_tls_database_verify_chain (
      GTlsDatabase* database,
      GTlsCertificate* chain,
      const char* purpose,
      GSocketConnectable* identity,
      GTlsInteraction* interaction,
      GTlsDatabaseVerifyFlags flags
    )

#### Description [src]

Wraps `g_tls_database_verify_chain_async()`.

Available since: 1.2

#### Parameters

`database`

  Type: `GTlsDatabase`

  A `GTlsDatabase`.

  The data is owned by the caller of the function.

`chain`

  Type: `GTlsCertificate`

  A `GTlsCertificate`.

  The data is owned by the caller of the function.

`purpose`

  Type: `const char*`

  Certificate purpose.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`identity`

  Type: `GSocketConnectable`

  Expected peer identity, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`interaction`

  Type: `GTlsInteraction`

  A `GTlsInteraction`, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`flags`

  Type: `GTlsDatabaseVerifyFlags`

  Verification flags.

#### Return value

Type: `DexFuture`

A `DexFuture` that resolves to `GTlsCertificateFlags` or rejects with error.

The caller of the function takes ownership of the data, and is responsible for freeing it.