-.\" $OpenBSD: bioctl.8,v 1.112 2023/08/18 14:09:19 kn Exp $
+.\" $OpenBSD: bioctl.8,v 1.113 2023/08/21 08:33:11 kn Exp $
.\"
.\" Copyright (c) 2004, 2005 Marco Peereboom
.\"
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 18 2023 $
+.Dd $Mdocdate: August 21 2023 $
.Dt BIOCTL 8
.Os
.Sh NAME
based on system performance.
Otherwise the minimum is 4 rounds and the default is 16.
.It Fl s
-Omit prompts and read passphrases without confirmation from
+Read passphrases from
.Pa /dev/stdin
rather than
-.Pa /dev/tty .
+.Pa /dev/tty ,
+without prompts, confirmation or retry on mismatch.
.El
.Sh EXAMPLES
Configure a new
-/* $OpenBSD: bioctl.c,v 1.153 2023/08/21 08:13:37 kn Exp $ */
+/* $OpenBSD: bioctl.c,v 1.154 2023/08/21 08:33:11 kn Exp $ */
/*
* Copyright (c) 2004, 2005 Marco Peereboom
} else {
rpp_flag |= interactive ? RPP_REQUIRE_TTY : RPP_STDIN;
+ retry:
if (readpassphrase(prompt, passphrase, sizeof(passphrase),
rpp_flag) == NULL)
err(1, "unable to read passphrase");
(strcmp(passphrase, verifybuf) != 0)) {
explicit_bzero(passphrase, sizeof(passphrase));
explicit_bzero(verifybuf, sizeof(verifybuf));
+ if (interactive) {
+ warnx("Passphrases did not match, try again");
+ goto retry;
+ }
errx(1, "Passphrases did not match");
}
/* forget the re-typed one */