pub async fn confirm(prompt: &str) -> boolExpand description
Prompts the user to approve a sign request. Returns true when
the askpass program exits 0, false in every other case.
The outcome is logged at info level on denial and warn level on internal error, so operators running the daemon under systemd or a log aggregator can tell “user said no” apart from “askpass is misconfigured”.
§Environment
Reads SSH_ASKPASS — if unset, returns false after logging a
warning. Writes SSH_ASKPASS_PROMPT=confirm into the child’s
environment so the askpass program renders a yes/no dialog rather
than a passphrase field.