Gjsify LogoGjsify Logo

Enumeration TlsCertificateFlags

A set of flags describing TLS certification validation. This can be used to describe why a particular certificate was rejected (for example, in #GTlsConnection::accept-certificate).

GLib guarantees that if certificate verification fails, at least one flag will be set, but it does not guarantee that all possible flags will be set. Accordingly, you may not safely decide to ignore any particular type of error. For example, it would be incorrect to mask %G_TLS_CERTIFICATE_EXPIRED if you want to allow expired certificates, because this could potentially be the only error flag set even if other problems exist with the certificate.

bitfield

Index

Enumeration Members

BAD_IDENTITY: number

The certificate does not match the expected identity of the site that it was retrieved from.

EXPIRED: number

The certificate has expired

GENERIC_ERROR: number

Some other error occurred validating the certificate

INSECURE: number

The certificate's algorithm is considered insecure.

NOT_ACTIVATED: number

The certificate's activation time is still in the future

REVOKED: number

The certificate has been revoked according to the #GTlsConnection's certificate revocation list.

UNKNOWN_CA: number

The signing certificate authority is not known.

VALIDATE_ALL: number

the combination of all of the above flags

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method