summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>2017-01-20 08:14:55 +0000
committerbeck <>2017-01-20 08:14:55 +0000
commit660b133d2ddd60402238de2263b92f90608f99f0 (patch)
tree4543b0ae1d641fdc930678dc4d4587a331b2be40 /src
parent321db821baef82b563a6e0e71b6f0f63acf63a1c (diff)
downloadopenbsd-660b133d2ddd60402238de2263b92f90608f99f0.tar.gz
openbsd-660b133d2ddd60402238de2263b92f90608f99f0.tar.bz2
openbsd-660b133d2ddd60402238de2263b92f90608f99f0.zip
fix pledge for openssl ocsp - we will need tty to ask for a cert pw
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/ocsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c
index 5b5108b390..82ea07aeee 100644
--- a/src/usr.bin/openssl/ocsp.c
+++ b/src/usr.bin/openssl/ocsp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.c,v 1.9 2017/01/19 07:01:37 beck Exp $ */ 1/* $OpenBSD: ocsp.c,v 1.10 2017/01/20 08:14:55 beck Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -147,7 +147,7 @@ ocsp_main(int argc, char **argv)
147 const char *errstr = NULL; 147 const char *errstr = NULL;
148 148
149 if (single_execution) { 149 if (single_execution) {
150 if (pledge("stdio inet dns rpath wpath cpath", NULL) == -1) { 150 if (pledge("stdio inet dns rpath wpath cpath tty", NULL) == -1) {
151 perror("pledge"); 151 perror("pledge");
152 exit(1); 152 exit(1);
153 } 153 }