diff options
Diffstat (limited to 'src/usr.bin/openssl/dhparam.c')
-rw-r--r-- | src/usr.bin/openssl/dhparam.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/dhparam.c b/src/usr.bin/openssl/dhparam.c index 158a07a572..55b75663b3 100644 --- a/src/usr.bin/openssl/dhparam.c +++ b/src/usr.bin/openssl/dhparam.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dhparam.c,v 1.6 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: dhparam.c,v 1.7 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 | * |
@@ -243,6 +243,11 @@ dhparam_main(int argc, char **argv) | |||
243 | int ret = 1; | 243 | int ret = 1; |
244 | int i; | 244 | int i; |
245 | 245 | ||
246 | if (single_execution) { | ||
247 | if (pledge("stdio rpath wpath cpath", NULL) == -1) | ||
248 | perror("pledge"); | ||
249 | } | ||
250 | |||
246 | memset(&dhparam_config, 0, sizeof(dhparam_config)); | 251 | memset(&dhparam_config, 0, sizeof(dhparam_config)); |
247 | 252 | ||
248 | dhparam_config.informat = FORMAT_PEM; | 253 | dhparam_config.informat = FORMAT_PEM; |