diff options
Diffstat (limited to 'src/usr.bin/openssl/enc.c')
-rw-r--r-- | src/usr.bin/openssl/enc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/enc.c b/src/usr.bin/openssl/enc.c index 6eb804fd49..d7103823d3 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.7 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: enc.c,v 1.8 2015/10/10 22:28:51 doug 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 | * |
@@ -338,6 +338,11 @@ enc_main(int argc, char **argv) | |||
338 | char pname[PROG_NAME_SIZE + 1]; | 338 | char pname[PROG_NAME_SIZE + 1]; |
339 | int i; | 339 | int i; |
340 | 340 | ||
341 | if (single_execution) { | ||
342 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
343 | perror("pledge"); | ||
344 | } | ||
345 | |||
341 | memset(&enc_config, 0, sizeof(enc_config)); | 346 | memset(&enc_config, 0, sizeof(enc_config)); |
342 | enc_config.enc = 1; | 347 | enc_config.enc = 1; |
343 | 348 | ||