### Virtual Method

# Gio DtlsConnection accept_certificate

#### Declaration [src]

    gboolean
    accept_certificate (
      GDtlsConnection* connection,
      GTlsCertificate* peer_cert,
      GTlsCertificateFlags errors
    )

#### Description [src]

Check whether to accept a certificate.

#### Parameters

`peer_cert`

  Type: `GTlsCertificate`

  No description available.

  The data is owned by the caller of the method.

`errors`

  Type: `GTlsCertificateFlags`

  No description available.

#### Return value

Type: `gboolean`

No description available.