diff options
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/crl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/crl.c b/src/usr.bin/openssl/crl.c index 4ab9e6c615..47173ec5ed 100644 --- a/src/usr.bin/openssl/crl.c +++ b/src/usr.bin/openssl/crl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crl.c,v 1.7 2015/08/22 16:36:05 jsing Exp $ */ | 1 | /* $OpenBSD: crl.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 | * |
| @@ -230,6 +230,11 @@ crl_main(int argc, char **argv) | |||
| 230 | const EVP_MD *digest; | 230 | const EVP_MD *digest; |
| 231 | char *digest_name = NULL; | 231 | char *digest_name = NULL; |
| 232 | 232 | ||
| 233 | if (single_execution) { | ||
| 234 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
| 235 | perror("pledge"); | ||
| 236 | } | ||
| 237 | |||
| 233 | if (bio_out == NULL) { | 238 | if (bio_out == NULL) { |
| 234 | if ((bio_out = BIO_new(BIO_s_file())) != NULL) { | 239 | if ((bio_out = BIO_new(BIO_s_file())) != NULL) { |
| 235 | BIO_set_fp(bio_out, stdout, BIO_NOCLOSE); | 240 | BIO_set_fp(bio_out, stdout, BIO_NOCLOSE); |
