summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/dsaparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/openssl/dsaparam.c')
-rw-r--r--usr.bin/openssl/dsaparam.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/openssl/dsaparam.c b/usr.bin/openssl/dsaparam.c
index 0cdd5c1d51d..73249498fca 100644
--- a/usr.bin/openssl/dsaparam.c
+++ b/usr.bin/openssl/dsaparam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsaparam.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */
+/* $OpenBSD: dsaparam.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -168,6 +168,11 @@ dsaparam_main(int argc, char **argv)
int numbits = -1;
char *strbits = NULL;
+ if (single_execution) {
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ perror("pledge");
+ }
+
memset(&dsaparam_config, 0, sizeof(dsaparam_config));
dsaparam_config.informat = FORMAT_PEM;