Message.connectRequestCertificatePassword

gulong connectRequestCertificatePassword(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.tls_password.TlsPassword))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : soup.message.Message))) && Parameters!T.length < 3)

Connect to RequestCertificatePassword signal.

Emitted during the msg's connection TLS handshake when tls_connection requests a certificate password from the client.

You can set the certificate password on password, then call soup.message.Message.tlsClientCertificatePasswordRequestComplete and return true to handle the signal synchronously. It's possible to handle the request asynchornously by calling gobject.object.ObjectWrap.ref_ on password, then returning true and call soup.message.Message.tlsClientCertificatePasswordRequestComplete later after setting the password on password. Note that this signal is not emitted if soup.session.Session.tlsInteraction was set.

Parameters

callbacksignal callback delegate or function to connect bool callback(gio.tls_password.TlsPassword tlsPassword, soup.message.Message message) tlsPassword the #GTlsPassword (optional) message the instance the signal is connected to (optional) Returns true to handle the request, or false to make the connection fail with gio.types.TlsError.CertificateRequired.
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID