Gio.TlsPassword::set_value

function vfunc_set_value(value: Number(guint8), length: Number(gssize), destroy: GLib.DestroyNotify): void {
}
  

Provide the value for this password.

The value will be owned by the password object, and later freed using the destroy function callback.

Specify the length, for a non-nul-terminated password. Pass -1 as length if using a nul-terminated password, and length will be calculated automatically. (Note that the terminating nul is not considered part of the password in this case.)

Since 2.30

value

the value for the password

length

the length of the password, or -1

destroy

a function to use to free the password.