login* subsystem, tty for readpassphase()
ok beck
-/* $OpenBSD: encrypt.c,v 1.40 2015/02/26 17:46:15 tedu Exp $ */
+/* $OpenBSD: encrypt.c,v 1.41 2015/10/10 17:59:15 deraadt Exp $ */
/*
* Copyright (c) 1996, Jason Downs. All rights reserved.
char *extra = NULL; /* Store login class or number of rounds */
const char *errstr;
+ if (pledge("stdio rpath tty", NULL) == -1)
+ err(1, "pledge");
+
while ((opt = getopt(argc, argv, "pb:c:")) != -1) {
switch (opt) {
case 'p':