mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
tls: expose cert details on GTlsCertificate
This changeset exposes
* `not-valid-before`
* `not-valid-after`
* `subject-name`
* `issuer-name`
on GTlsCertificate provided by the underlying TLS Backend.
In order to make use of these changes,
see the related [glib-networking MR][glib-networking].
This change aims to help populate more of the [`Certificate`][wk-cert]
info in the WebKit Inspector Protocol on Linux.
This changeset stems from work in Microsoft Playwright to [add more info
into its HAR capture][pw] generated from the Inspector Protocol events
and will bring feature parity across WebKit platforms.
[wk-cert]: 8afe31a018/Source/JavaScriptCore/inspector/protocol/Security.json
[pw]: https://github.com/microsoft/playwright/pull/6631
[glib-networking]: https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/156
This commit is contained in:
@@ -92,6 +92,18 @@ GLIB_AVAILABLE_IN_2_34
|
||||
gboolean g_tls_certificate_is_same (GTlsCertificate *cert_one,
|
||||
GTlsCertificate *cert_two);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_70
|
||||
GDateTime *g_tls_certificate_get_not_valid_before (GTlsCertificate *cert);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_70
|
||||
GDateTime *g_tls_certificate_get_not_valid_after (GTlsCertificate *cert);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_70
|
||||
gchar *g_tls_certificate_get_subject_name (GTlsCertificate *cert);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_70
|
||||
gchar *g_tls_certificate_get_issuer_name (GTlsCertificate *cert);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __G_TLS_CERTIFICATE_H__ */
|
||||
|
Reference in New Issue
Block a user