diff options
author | jca <> | 2015-11-21 16:03:06 +0000 |
---|---|---|
committer | jca <> | 2015-11-21 16:03:06 +0000 |
commit | 4c0d4a53ef88df5c5aad78236d46974d84a62b2e (patch) | |
tree | d6363579b79bdf3e0f20e9b675061d28d8d63a4d /src | |
parent | 0de204684b658a1363efbf53e825e981c7bfb487 (diff) | |
download | openbsd-4c0d4a53ef88df5c5aad78236d46974d84a62b2e.tar.gz openbsd-4c0d4a53ef88df5c5aad78236d46974d84a62b2e.tar.bz2 openbsd-4c0d4a53ef88df5c5aad78236d46974d84a62b2e.zip |
Unbreak s_client, which should be allowed by pledge(2) to do DNS requests.
From todd@
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/openssl.c | 4 | ||||
-rw-r--r-- | src/usr.bin/openssl/s_client.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index 374bcd27d0..f99c625260 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.19 2015/10/17 07:51:10 semarie Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.20 2015/11/21 16:03:06 jca 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 tty", NULL) == -1) { | 441 | if (pledge("stdio inet rpath wpath cpath proc flock tty dns", 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/s_client.c b/src/usr.bin/openssl/s_client.c index ed7ecfa714..c73a5fd38f 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.23 2015/10/17 15:00:11 doug Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.24 2015/11/21 16:03:06 jca 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 tty", NULL) == -1) { | 368 | if (pledge("stdio inet rpath wpath cpath tty dns", NULL) == -1) { |
369 | perror("pledge"); | 369 | perror("pledge"); |
370 | exit(1); | 370 | exit(1); |
371 | } | 371 | } |