trust_prompt


Description:

[ Version ( since = "3.8" ) ]
public virtual CertTrust trust_prompt (Service service, TlsCertificate certificate, TlsCertificateFlags errors)

Prompts the user whether to accept certificate for service.

The set of flags given in errors indicate why the certificate failed validation.

If an error occurs during prompting or if the user declines to respond, the function returns UNKNOWN and the certificate will be rejected.

Parameters:

this

a Session

service

a Service

certificate

the peer's TlsCertificate

errors

the problems with certificate

Returns:

the user's trust level for certificate




2022 vala-language.org