Merge branch 'mcatanzaro/verify-chain-docs' into 'master'

Improve documentation of g_tls_database_verify_chain()

See merge request GNOME/glib!1475
This commit is contained in:
Philip Withnall 2020-05-07 09:48:11 +00:00
commit 5bef5628f5

View File

@ -473,9 +473,13 @@ g_tls_database_class_init (GTlsDatabaseClass *klass)
* which means that the certificate is being used to authenticate a server * which means that the certificate is being used to authenticate a server
* (and we are acting as the client). * (and we are acting as the client).
* *
* The @identity is used to check for pinned certificates (trust exceptions) * The @identity is used to ensure the server certificate is valid for
* in the database. These will override the normal verification process on a * the expected peer identity. If the identity does not match the
* host by host basis. * certificate, %G_TLS_CERTIFICATE_BAD_IDENTITY will be set in the
* return value. If @identity is %NULL, that bit will never be set in
* the return value. The peer identity may also be used to check for
* pinned certificates (trust exceptions) in the database. These may
* override the normal verification process on a host-by-host basis.
* *
* Currently there are no @flags, and %G_TLS_DATABASE_VERIFY_NONE should be * Currently there are no @flags, and %G_TLS_DATABASE_VERIFY_NONE should be
* used. * used.