summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/ca.c4
-rw-r--r--src/usr.bin/openssl/cms.c4
-rw-r--r--src/usr.bin/openssl/dgst.c4
-rw-r--r--src/usr.bin/openssl/dsa.c4
-rw-r--r--src/usr.bin/openssl/ec.c4
-rw-r--r--src/usr.bin/openssl/enc.c4
-rw-r--r--src/usr.bin/openssl/gendsa.c4
-rw-r--r--src/usr.bin/openssl/genpkey.c4
-rw-r--r--src/usr.bin/openssl/genrsa.c4
-rw-r--r--src/usr.bin/openssl/openssl.c4
-rw-r--r--src/usr.bin/openssl/passwd.c4
-rw-r--r--src/usr.bin/openssl/pkcs12.c4
-rw-r--r--src/usr.bin/openssl/pkcs8.c4
-rw-r--r--src/usr.bin/openssl/pkey.c4
-rw-r--r--src/usr.bin/openssl/pkeyutl.c4
-rw-r--r--src/usr.bin/openssl/req.c4
-rw-r--r--src/usr.bin/openssl/rsa.c4
-rw-r--r--src/usr.bin/openssl/rsautl.c4
-rw-r--r--src/usr.bin/openssl/s_client.c4
-rw-r--r--src/usr.bin/openssl/s_server.c4
-rw-r--r--src/usr.bin/openssl/smime.c4
-rw-r--r--src/usr.bin/openssl/spkac.c4
-rw-r--r--src/usr.bin/openssl/ts.c4
-rw-r--r--src/usr.bin/openssl/x509.c4
24 files changed, 48 insertions, 48 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index 0b246aeb15..d97410b556 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.17 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: ca.c,v 1.18 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -287,7 +287,7 @@ ca_main(int argc, char **argv)
287 DB_ATTR db_attr; 287 DB_ATTR db_attr;
288 288
289 if (single_execution) { 289 if (single_execution) {
290 if (pledge("stdio rpath wpath cpath", NULL) == -1) 290 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
291 perror("pledge"); 291 perror("pledge");
292 } 292 }
293 293
diff --git a/src/usr.bin/openssl/cms.c b/src/usr.bin/openssl/cms.c
index 29429f53e0..4174960d7a 100644
--- a/src/usr.bin/openssl/cms.c
+++ b/src/usr.bin/openssl/cms.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms.c,v 1.4 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: cms.c,v 1.5 2015/10/17 07:51:10 semarie 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. 3 * project.
4 */ 4 */
@@ -136,7 +136,7 @@ cms_main(int argc, char **argv)
136 X509_VERIFY_PARAM *vpm = NULL; 136 X509_VERIFY_PARAM *vpm = NULL;
137 137
138 if (single_execution) { 138 if (single_execution) {
139 if (pledge("stdio rpath wpath cpath", NULL) == -1) 139 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
140 perror("pledge"); 140 perror("pledge");
141 } 141 }
142 142
diff --git a/src/usr.bin/openssl/dgst.c b/src/usr.bin/openssl/dgst.c
index b4632eefa3..432f310030 100644
--- a/src/usr.bin/openssl/dgst.c
+++ b/src/usr.bin/openssl/dgst.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dgst.c,v 1.7 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: dgst.c,v 1.8 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -124,7 +124,7 @@ dgst_main(int argc, char **argv)
124 STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL; 124 STACK_OF(OPENSSL_STRING) * sigopts = NULL, *macopts = NULL;
125 125
126 if (single_execution) { 126 if (single_execution) {
127 if (pledge("stdio rpath wpath cpath", NULL) == -1) 127 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
128 perror("pledge"); 128 perror("pledge");
129 } 129 }
130 130
diff --git a/src/usr.bin/openssl/dsa.c b/src/usr.bin/openssl/dsa.c
index 2c4feea0d5..6a774ee545 100644
--- a/src/usr.bin/openssl/dsa.c
+++ b/src/usr.bin/openssl/dsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: dsa.c,v 1.7 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -241,7 +241,7 @@ dsa_main(int argc, char **argv)
241 char *passin = NULL, *passout = NULL; 241 char *passin = NULL, *passout = NULL;
242 242
243 if (single_execution) { 243 if (single_execution) {
244 if (pledge("stdio rpath wpath cpath", NULL) == -1) 244 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
245 perror("pledge"); 245 perror("pledge");
246 } 246 }
247 247
diff --git a/src/usr.bin/openssl/ec.c b/src/usr.bin/openssl/ec.c
index b4e2fe1daa..b376d43404 100644
--- a/src/usr.bin/openssl/ec.c
+++ b/src/usr.bin/openssl/ec.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: ec.c,v 1.7 2015/10/17 07:51:10 semarie Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -278,7 +278,7 @@ ec_main(int argc, char **argv)
278 char *passin = NULL, *passout = NULL; 278 char *passin = NULL, *passout = NULL;
279 279
280 if (single_execution) { 280 if (single_execution) {
281 if (pledge("stdio rpath wpath cpath", NULL) == -1) 281 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
282 perror("pledge"); 282 perror("pledge");
283 } 283 }
284 284
diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c
index d7103823d3..296024c68f 100644
--- a/src/usr.bin/openssl/enc.c
+++ b/src/usr.bin/openssl/enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: enc.c,v 1.8 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: enc.c,v 1.9 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -339,7 +339,7 @@ enc_main(int argc, char **argv)
339 int i; 339 int i;
340 340
341 if (single_execution) { 341 if (single_execution) {
342 if (pledge("stdio rpath wpath cpath", NULL) == -1) 342 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
343 perror("pledge"); 343 perror("pledge");
344 } 344 }
345 345
diff --git a/src/usr.bin/openssl/gendsa.c b/src/usr.bin/openssl/gendsa.c
index 002380a1b9..3e027aaf26 100644
--- a/src/usr.bin/openssl/gendsa.c
+++ b/src/usr.bin/openssl/gendsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gendsa.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: gendsa.c,v 1.6 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -86,7 +86,7 @@ gendsa_main(int argc, char **argv)
86 const EVP_CIPHER *enc = NULL; 86 const EVP_CIPHER *enc = NULL;
87 87
88 if (single_execution) { 88 if (single_execution) {
89 if (pledge("stdio rpath wpath cpath", NULL) == -1) 89 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
90 perror("pledge"); 90 perror("pledge");
91 } 91 }
92 92
diff --git a/src/usr.bin/openssl/genpkey.c b/src/usr.bin/openssl/genpkey.c
index 4d11bc3c33..995d66f14d 100644
--- a/src/usr.bin/openssl/genpkey.c
+++ b/src/usr.bin/openssl/genpkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: genpkey.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: genpkey.c,v 1.7 2015/10/17 07:51:10 semarie 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 2006 3 * project 2006
4 */ 4 */
@@ -87,7 +87,7 @@ genpkey_main(int argc, char **argv)
87 int do_param = 0; 87 int do_param = 0;
88 88
89 if (single_execution) { 89 if (single_execution) {
90 if (pledge("stdio rpath wpath cpath", NULL) == -1) 90 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
91 perror("pledge"); 91 perror("pledge");
92 } 92 }
93 93
diff --git a/src/usr.bin/openssl/genrsa.c b/src/usr.bin/openssl/genrsa.c
index 1ca8713ed2..35e6d602b0 100644
--- a/src/usr.bin/openssl/genrsa.c
+++ b/src/usr.bin/openssl/genrsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: genrsa.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: genrsa.c,v 1.7 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -101,7 +101,7 @@ genrsa_main(int argc, char **argv)
101 RSA *rsa = NULL; 101 RSA *rsa = NULL;
102 102
103 if (single_execution) { 103 if (single_execution) {
104 if (pledge("stdio rpath wpath cpath", NULL) == -1) 104 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
105 perror("pledge"); 105 perror("pledge");
106 } 106 }
107 107
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c
index 43f0e9189c..374bcd27d0 100644
--- a/src/usr.bin/openssl/openssl.c
+++ b/src/usr.bin/openssl/openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: openssl.c,v 1.18 2015/10/16 13:37:44 millert Exp $ */ 1/* $OpenBSD: openssl.c,v 1.19 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -438,7 +438,7 @@ main(int argc, char **argv)
438 arg.data = NULL; 438 arg.data = NULL;
439 arg.count = 0; 439 arg.count = 0;
440 440
441 if (pledge("stdio inet rpath wpath cpath proc flock", NULL) == -1) { 441 if (pledge("stdio inet rpath wpath cpath proc flock tty", NULL) == -1) {
442 fprintf(stderr, "openssl: pledge: %s\n", strerror(errno)); 442 fprintf(stderr, "openssl: pledge: %s\n", strerror(errno));
443 exit(1); 443 exit(1);
444 } 444 }
diff --git a/src/usr.bin/openssl/passwd.c b/src/usr.bin/openssl/passwd.c
index 58fc5ecb4b..7ef7ef456c 100644
--- a/src/usr.bin/openssl/passwd.c
+++ b/src/usr.bin/openssl/passwd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: passwd.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: passwd.c,v 1.6 2015/10/17 07:51:10 semarie Exp $ */
2 2
3#if defined OPENSSL_NO_MD5 3#if defined OPENSSL_NO_MD5
4#define NO_MD5CRYPT_1 4#define NO_MD5CRYPT_1
@@ -146,7 +146,7 @@ passwd_main(int argc, char **argv)
146 int ret = 1; 146 int ret = 1;
147 147
148 if (single_execution) { 148 if (single_execution) {
149 if (pledge("stdio rpath", NULL) == -1) 149 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
150 perror("pledge"); 150 perror("pledge");
151 } 151 }
152 152
diff --git a/src/usr.bin/openssl/pkcs12.c b/src/usr.bin/openssl/pkcs12.c
index f8d8cc6115..2eb04a58b7 100644
--- a/src/usr.bin/openssl/pkcs12.c
+++ b/src/usr.bin/openssl/pkcs12.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkcs12.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: pkcs12.c,v 1.6 2015/10/17 07:51:10 semarie 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. 3 * project.
4 */ 4 */
@@ -125,7 +125,7 @@ pkcs12_main(int argc, char **argv)
125 char *CApath = NULL, *CAfile = NULL; 125 char *CApath = NULL, *CAfile = NULL;
126 126
127 if (single_execution) { 127 if (single_execution) {
128 if (pledge("stdio rpath wpath cpath", NULL) == -1) 128 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
129 perror("pledge"); 129 perror("pledge");
130 } 130 }
131 131
diff --git a/src/usr.bin/openssl/pkcs8.c b/src/usr.bin/openssl/pkcs8.c
index 4ac2af012a..5b54cbfb98 100644
--- a/src/usr.bin/openssl/pkcs8.c
+++ b/src/usr.bin/openssl/pkcs8.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkcs8.c,v 1.7 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: pkcs8.c,v 1.8 2015/10/17 07:51:10 semarie 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 1999-2004. 3 * project 1999-2004.
4 */ 4 */
@@ -227,7 +227,7 @@ pkcs8_main(int argc, char **argv)
227 int ret = 1; 227 int ret = 1;
228 228
229 if (single_execution) { 229 if (single_execution) {
230 if (pledge("stdio rpath wpath cpath", NULL) == -1) 230 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
231 perror("pledge"); 231 perror("pledge");
232 } 232 }
233 233
diff --git a/src/usr.bin/openssl/pkey.c b/src/usr.bin/openssl/pkey.c
index d1ddf5a929..0a0590ccb6 100644
--- a/src/usr.bin/openssl/pkey.c
+++ b/src/usr.bin/openssl/pkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkey.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: pkey.c,v 1.7 2015/10/17 07:51:10 semarie 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 2006 3 * project 2006
4 */ 4 */
@@ -80,7 +80,7 @@ pkey_main(int argc, char **argv)
80 int ret = 1; 80 int ret = 1;
81 81
82 if (single_execution) { 82 if (single_execution) {
83 if (pledge("stdio rpath wpath cpath", NULL) == -1) 83 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
84 perror("pledge"); 84 perror("pledge");
85 } 85 }
86 86
diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c
index 64d1f90f50..bf3fcf1b92 100644
--- a/src/usr.bin/openssl/pkeyutl.c
+++ b/src/usr.bin/openssl/pkeyutl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkeyutl.c,v 1.8 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: pkeyutl.c,v 1.9 2015/10/17 07:51:10 semarie 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 2006. 3 * project 2006.
4 */ 4 */
@@ -101,7 +101,7 @@ pkeyutl_main(int argc, char **argv)
101 int ret = 1, rv = -1; 101 int ret = 1, rv = -1;
102 102
103 if (single_execution) { 103 if (single_execution) {
104 if (pledge("stdio rpath wpath cpath", NULL) == -1) 104 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
105 perror("pledge"); 105 perror("pledge");
106 } 106 }
107 107
diff --git a/src/usr.bin/openssl/req.c b/src/usr.bin/openssl/req.c
index 032944b233..c2f20ae757 100644
--- a/src/usr.bin/openssl/req.c
+++ b/src/usr.bin/openssl/req.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: req.c,v 1.10 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: req.c,v 1.11 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -177,7 +177,7 @@ req_main(int argc, char **argv)
177 unsigned long chtype = MBSTRING_ASC; 177 unsigned long chtype = MBSTRING_ASC;
178 178
179 if (single_execution) { 179 if (single_execution) {
180 if (pledge("stdio rpath wpath cpath", NULL) == -1) 180 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
181 perror("pledge"); 181 perror("pledge");
182 } 182 }
183 183
diff --git a/src/usr.bin/openssl/rsa.c b/src/usr.bin/openssl/rsa.c
index a5737605fe..06d3ca1b42 100644
--- a/src/usr.bin/openssl/rsa.c
+++ b/src/usr.bin/openssl/rsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsa.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: rsa.c,v 1.7 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -269,7 +269,7 @@ rsa_main(int argc, char **argv)
269 char *passin = NULL, *passout = NULL; 269 char *passin = NULL, *passout = NULL;
270 270
271 if (single_execution) { 271 if (single_execution) {
272 if (pledge("stdio rpath wpath cpath", NULL) == -1) 272 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
273 perror("pledge"); 273 perror("pledge");
274 } 274 }
275 275
diff --git a/src/usr.bin/openssl/rsautl.c b/src/usr.bin/openssl/rsautl.c
index 92dceff8a1..a6106e0313 100644
--- a/src/usr.bin/openssl/rsautl.c
+++ b/src/usr.bin/openssl/rsautl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsautl.c,v 1.8 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: rsautl.c,v 1.9 2015/10/17 07:51:10 semarie 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 */
@@ -99,7 +99,7 @@ rsautl_main(int argc, char **argv)
99 int ret = 1; 99 int ret = 1;
100 100
101 if (single_execution) { 101 if (single_execution) {
102 if (pledge("stdio rpath wpath cpath", NULL) == -1) 102 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
103 perror("pledge"); 103 perror("pledge");
104 } 104 }
105 105
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c
index 63f30389c4..6bc66ac5fb 100644
--- a/src/usr.bin/openssl/s_client.c
+++ b/src/usr.bin/openssl/s_client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_client.c,v 1.21 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: s_client.c,v 1.22 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -365,7 +365,7 @@ s_client_main(int argc, char **argv)
365 long socket_mtu = 0; 365 long socket_mtu = 0;
366 366
367 if (single_execution) { 367 if (single_execution) {
368 if (pledge("stdio inet rpath wpath cpath", NULL) == -1) 368 if (pledge("stdio inet rpath wpath cpath tty", NULL) == -1)
369 perror("pledge"); 369 perror("pledge");
370 } 370 }
371 371
diff --git a/src/usr.bin/openssl/s_server.c b/src/usr.bin/openssl/s_server.c
index 198508398b..33765eeedb 100644
--- a/src/usr.bin/openssl/s_server.c
+++ b/src/usr.bin/openssl/s_server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_server.c,v 1.20 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: s_server.c,v 1.21 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -605,7 +605,7 @@ s_server_main(int argc, char *argv[])
605 tlsextalpnctx alpn_ctx = { NULL, 0 }; 605 tlsextalpnctx alpn_ctx = { NULL, 0 };
606 606
607 if (single_execution) { 607 if (single_execution) {
608 if (pledge("stdio inet rpath", NULL) == -1) 608 if (pledge("stdio inet rpath tty", NULL) == -1)
609 perror("pledge"); 609 perror("pledge");
610 } 610 }
611 611
diff --git a/src/usr.bin/openssl/smime.c b/src/usr.bin/openssl/smime.c
index fee7c71e76..53e2a94a54 100644
--- a/src/usr.bin/openssl/smime.c
+++ b/src/usr.bin/openssl/smime.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: smime.c,v 1.5 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: smime.c,v 1.6 2015/10/17 07:51:10 semarie 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. 3 * project.
4 */ 4 */
@@ -113,7 +113,7 @@ smime_main(int argc, char **argv)
113 X509_VERIFY_PARAM *vpm = NULL; 113 X509_VERIFY_PARAM *vpm = NULL;
114 114
115 if (single_execution) { 115 if (single_execution) {
116 if (pledge("stdio rpath wpath cpath", NULL) == -1) 116 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
117 perror("pledge"); 117 perror("pledge");
118 } 118 }
119 119
diff --git a/src/usr.bin/openssl/spkac.c b/src/usr.bin/openssl/spkac.c
index 1c8b7073d8..7eff70b5e6 100644
--- a/src/usr.bin/openssl/spkac.c
+++ b/src/usr.bin/openssl/spkac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: spkac.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: spkac.c,v 1.7 2015/10/17 07:51:10 semarie 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 1999. Based on an original idea by Massimiliano Pala 3 * project 1999. Based on an original idea by Massimiliano Pala
4 * (madwolf@openca.org). 4 * (madwolf@openca.org).
@@ -182,7 +182,7 @@ spkac_main(int argc, char **argv)
182 EVP_PKEY *pkey = NULL; 182 EVP_PKEY *pkey = NULL;
183 183
184 if (single_execution) { 184 if (single_execution) {
185 if (pledge("stdio rpath wpath cpath", NULL) == -1) 185 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
186 perror("pledge"); 186 perror("pledge");
187 } 187 }
188 188
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c
index 04ff60ae48..60b8f02bac 100644
--- a/src/usr.bin/openssl/ts.c
+++ b/src/usr.bin/openssl/ts.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts.c,v 1.11 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: ts.c,v 1.12 2015/10/17 07:51:10 semarie Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -150,7 +150,7 @@ ts_main(int argc, char **argv)
150 int token_out = 0; 150 int token_out = 0;
151 151
152 if (single_execution) { 152 if (single_execution) {
153 if (pledge("stdio rpath wpath cpath", NULL) == -1) 153 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
154 perror("pledge"); 154 perror("pledge");
155 } 155 }
156 156
diff --git a/src/usr.bin/openssl/x509.c b/src/usr.bin/openssl/x509.c
index 07c28789d3..08b39e5db6 100644
--- a/src/usr.bin/openssl/x509.c
+++ b/src/usr.bin/openssl/x509.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509.c,v 1.10 2015/10/10 22:28:51 doug Exp $ */ 1/* $OpenBSD: x509.c,v 1.11 2015/10/17 07:51:10 semarie Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -199,7 +199,7 @@ x509_main(int argc, char **argv)
199 const char *errstr = NULL; 199 const char *errstr = NULL;
200 200
201 if (single_execution) { 201 if (single_execution) {
202 if (pledge("stdio rpath wpath cpath", NULL) == -1) 202 if (pledge("stdio rpath wpath cpath tty", NULL) == -1)
203 perror("pledge"); 203 perror("pledge");
204 } 204 }
205 205