diff options
Diffstat (limited to 'src/usr.bin/openssl/req.c')
-rw-r--r-- | src/usr.bin/openssl/req.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/req.c b/src/usr.bin/openssl/req.c index c7256ae59a..032944b233 100644 --- a/src/usr.bin/openssl/req.c +++ b/src/usr.bin/openssl/req.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: req.c,v 1.9 2015/09/14 01:45:03 doug Exp $ */ | 1 | /* $OpenBSD: req.c,v 1.10 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 | * |
@@ -176,6 +176,11 @@ req_main(int argc, char **argv) | |||
176 | const EVP_MD *md_alg = NULL, *digest = NULL; | 176 | const EVP_MD *md_alg = NULL, *digest = NULL; |
177 | unsigned long chtype = MBSTRING_ASC; | 177 | unsigned long chtype = MBSTRING_ASC; |
178 | 178 | ||
179 | if (single_execution) { | ||
180 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
181 | perror("pledge"); | ||
182 | } | ||
183 | |||
179 | req_conf = NULL; | 184 | req_conf = NULL; |
180 | cipher = EVP_aes_256_cbc(); | 185 | cipher = EVP_aes_256_cbc(); |
181 | digest = EVP_sha256(); | 186 | digest = EVP_sha256(); |