summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/ecparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/openssl/ecparam.c')
-rw-r--r--usr.bin/openssl/ecparam.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/openssl/ecparam.c b/usr.bin/openssl/ecparam.c
index 6adac863d5c..bd0c5b8cc0c 100644
--- a/usr.bin/openssl/ecparam.c
+++ b/usr.bin/openssl/ecparam.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecparam.c,v 1.13 2015/09/11 14:30:23 bcook Exp $ */
+/* $OpenBSD: ecparam.c,v 1.14 2015/10/10 22:28:51 doug Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -259,6 +259,11 @@ ecparam_main(int argc, char **argv)
BIO *in = NULL, *out = NULL;
int i, ret = 1;
+ if (single_execution) {
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ perror("pledge");
+ }
+
memset(&ecparam_config, 0, sizeof(ecparam_config));
ecparam_config.asn1_flag = OPENSSL_EC_NAMED_CURVE;
ecparam_config.form = POINT_CONVERSION_UNCOMPRESSED;