summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-21 16:03:07 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-11-21 16:03:07 +0000
commit10169188ab327e414cb6c515bebeb82a962eaeda (patch)
treef3ea5e4b53049edc80373d3795f4bfb6f4edcc5b /usr.bin
parenteedbd6a46f0a07cc17a7854995f1d81a5e20a255 (diff)
Unbreak s_client, which should be allowed by pledge(2) to do DNS requests.
From todd@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/openssl.c4
-rw-r--r--usr.bin/openssl/s_client.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/openssl/openssl.c b/usr.bin/openssl/openssl.c
index 374bcd27d0a..f99c625260e 100644
--- a/usr.bin/openssl/openssl.c
+++ b/usr.bin/openssl/openssl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openssl.c,v 1.19 2015/10/17 07:51:10 semarie Exp $ */
+/* $OpenBSD: openssl.c,v 1.20 2015/11/21 16:03:06 jca Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -438,7 +438,7 @@ main(int argc, char **argv)
arg.data = NULL;
arg.count = 0;
- if (pledge("stdio inet rpath wpath cpath proc flock tty", NULL) == -1) {
+ if (pledge("stdio inet rpath wpath cpath proc flock tty dns", NULL) == -1) {
fprintf(stderr, "openssl: pledge: %s\n", strerror(errno));
exit(1);
}
diff --git a/usr.bin/openssl/s_client.c b/usr.bin/openssl/s_client.c
index ed7ecfa714a..c73a5fd38f0 100644
--- a/usr.bin/openssl/s_client.c
+++ b/usr.bin/openssl/s_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_client.c,v 1.23 2015/10/17 15:00:11 doug Exp $ */
+/* $OpenBSD: s_client.c,v 1.24 2015/11/21 16:03:06 jca Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -365,7 +365,7 @@ s_client_main(int argc, char **argv)
long socket_mtu = 0;
if (single_execution) {
- if (pledge("stdio inet rpath wpath cpath tty", NULL) == -1) {
+ if (pledge("stdio inet rpath wpath cpath tty dns", NULL) == -1) {
perror("pledge");
exit(1);
}