Message.connectAcceptCertificate

Connect to AcceptCertificate signal.

Emitted during the msg's connection TLS handshake after an unacceptable TLS certificate has been received.

You can return true to accept tls_certificate despite tls_errors.

class Message
ulong
connectAcceptCertificate
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == bool)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == gio.types.TlsCertificateFlags)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] : soup.message.Message)
)
)
&&
Parameters!T.length < 4
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gio.tls_certificate.TlsCertificate tlsPeerCertificate, gio.types.TlsCertificateFlags tlsPeerErrors, soup.message.Message message)

tlsPeerCertificate the peer's #GTlsCertificate (optional)

tlsPeerErrors the tls errors of tls_certificate (optional)

message the instance the signal is connected to (optional)

Returns true to accept the TLS certificate and stop other handlers from being invoked, or false to propagate the event further.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID