diff options
Diffstat (limited to 'src/usr.bin/openssl/ca.c')
| -rw-r--r-- | src/usr.bin/openssl/ca.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c index bbc5403e3c..e13354f4af 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.53 2022/02/03 17:44:04 tb Exp $ */ | 1 | /* $OpenBSD: ca.c,v 1.54 2022/11/11 17:07:38 joshua 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 | * |
| @@ -685,11 +685,9 @@ ca_main(int argc, char **argv) | |||
| 685 | char *tofree = NULL; | 685 | char *tofree = NULL; |
| 686 | DB_ATTR db_attr; | 686 | DB_ATTR db_attr; |
| 687 | 687 | ||
| 688 | if (single_execution) { | 688 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
| 689 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { | 689 | perror("pledge"); |
| 690 | perror("pledge"); | 690 | exit(1); |
| 691 | exit(1); | ||
| 692 | } | ||
| 693 | } | 691 | } |
| 694 | 692 | ||
| 695 | memset(&ca_config, 0, sizeof(ca_config)); | 693 | memset(&ca_config, 0, sizeof(ca_config)); |
