diff options
Diffstat (limited to 'src/usr.bin/openssl/pkcs8.c')
| -rw-r--r-- | src/usr.bin/openssl/pkcs8.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/pkcs8.c b/src/usr.bin/openssl/pkcs8.c index 0629b20c37..ea12230006 100644 --- a/src/usr.bin/openssl/pkcs8.c +++ b/src/usr.bin/openssl/pkcs8.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pkcs8.c,v 1.14 2019/07/14 03:30:46 guenther Exp $ */ | 1 | /* $OpenBSD: pkcs8.c,v 1.15 2022/11/11 17:07:39 joshua Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999-2004. | 3 | * project 1999-2004. |
| 4 | */ | 4 | */ |
| @@ -203,11 +203,9 @@ pkcs8_main(int argc, char **argv) | |||
| 203 | char pass[50], *passin = NULL, *passout = NULL, *p8pass = NULL; | 203 | char pass[50], *passin = NULL, *passout = NULL, *p8pass = NULL; |
| 204 | int ret = 1; | 204 | int ret = 1; |
| 205 | 205 | ||
| 206 | if (single_execution) { | 206 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { |
| 207 | if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { | 207 | perror("pledge"); |
| 208 | perror("pledge"); | 208 | exit(1); |
| 209 | exit(1); | ||
| 210 | } | ||
| 211 | } | 209 | } |
| 212 | 210 | ||
| 213 | memset(&pkcs8_config, 0, sizeof(pkcs8_config)); | 211 | memset(&pkcs8_config, 0, sizeof(pkcs8_config)); |
