from the server, or false otherwise.
WebView.getTlsInfo
bool getTlsInfo(out gio.tls_certificate.TlsCertificate certificate, out gio.types.TlsCertificateFlags errors)Retrieves the #GTlsCertificate associated with the main resource of web_view.
Retrieves the #GTlsCertificate associated with the main resource of web_view, and the #GTlsCertificateFlags showing what problems, if any, have been found with that certificate. If the connection is not HTTPS, this function returns false. This function should be called after a response has been received from the server, so you can connect to #WebKitWebView::load-changed and call this function when it's emitted with [webkit.types.LoadEvent.Committed] event.
Note that this function provides no information about the security of the web page if the current #WebKitTLSErrorsPolicy is [webkit.types.TLSErrorsPolicy.Ignore], as subresources of the page may be controlled by an attacker. This function may safely be used to determine the security status of the current page only if the current #WebKitTLSErrorsPolicy is [webkit.types.TLSErrorsPolicy.Fail], in which case subresources that fail certificate verification will be blocked.
Parameters
certificate | return location for a #GTlsCertificate |
errors | return location for a #GTlsCertificateFlags the verification status of certificate |