diff options
author | 2015-12-01 01:24:47 +0000 | |
---|---|---|
committer | 2015-12-01 01:24:47 +0000 | |
commit | 2301a1647419aad0452ffc1c194d049df3e123d1 (patch) | |
tree | 16b19d2ac0354ee0c4f7c370e71d6c70a510d8a9 | |
parent | Cope with the changed order of warning and error messages caused by the (diff) | |
download | wireguard-openbsd-2301a1647419aad0452ffc1c194d049df3e123d1.tar.xz wireguard-openbsd-2301a1647419aad0452ffc1c194d049df3e123d1.zip |
pledge dns so openssl can use dns.. noticed and fix by todd@
ok jcs@ deraadt@ theo@
-rw-r--r-- | usr.bin/openssl/openssl.c | 4 | ||||
-rw-r--r-- | usr.bin/openssl/s_client.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/openssl/openssl.c b/usr.bin/openssl/openssl.c index e8c75daf0ac..08a59296112 100644 --- a/usr.bin/openssl/openssl.c +++ b/usr.bin/openssl/openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: openssl.c,v 1.21 2015/11/21 16:04:20 jca Exp $ */ +/* $OpenBSD: openssl.c,v 1.22 2015/12/01 01:24:47 beck 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 dns rpath wpath cpath proc flock tty", NULL) == -1) { + if (pledge("stdio inet dns 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 21454c5bf3c..ae86a7c85e5 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.25 2015/11/21 16:04:20 jca Exp $ */ +/* $OpenBSD: s_client.c,v 1.26 2015/12/01 01:24:47 beck 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 dns rpath wpath cpath tty", NULL) == -1) { + if (pledge("stdio inet dns rpath wpath cpath tty dns", NULL) == -1) { perror("pledge"); exit(1); } |