get_last_credentials_required_arguments_sync


Description:

[ Version ( since = "3.16" ) ]
public bool get_last_credentials_required_arguments_sync (out SourceCredentialsReason out_reason, out string out_certificate_pem, out TlsCertificateFlags out_certificate_errors, out Error out_op_error, Cancellable? cancellable = null) throws Error

Retrieves the last used arguments of the 'credentials-required' signal emission.

If there was none emitted yet, or a corresponding 'authenitcate' had been emitted already, then the out_reason is set to UNKNOWN and the value of other 'out' arguments is set to no values.

If an error occurs, the function sets error and returns false. The result gchar values should be freed with g_free when no longer needed.

Parameters:

this

an Source

out_reason

an SourceCredentialsReason, why the credentials are required

out_certificate_pem

PEM-encoded secure connection certificate, or an empty string

out_certificate_errors

a bit-or of TlsCertificateFlags for secure connection certificate

out_op_error

a Error with a description of the previous credentials error

cancellable

optional Cancellable object, or null

Returns:

true on success, false on error




2022 vala-language.org