Message.getHttpsStatus

If @msg is using https (or attempted to use https but got %SOUP_STATUS_SSL_FAILED), this retrieves the #GTlsCertificate associated with its connection, and the #GTlsCertificateFlags showing what problems, if any, have been found with that certificate.

<note><para>This is only meaningful with messages processed by a #SoupSession and is not useful for messages received by a #SoupServer</para></note>

class Message
bool
getHttpsStatus
(
out TlsCertificate certificate
,
out GTlsCertificateFlags errors
)

Parameters

certificate TlsCertificate

@msg's TLS certificate

errors GTlsCertificateFlags

the verification status of @certificate

Return Value

Type: bool

%TRUE if @msg used/attempted https, %FALSE if not

Meta

Since

2.34