summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/ec.c')
-rw-r--r--src/usr.bin/openssl/ec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/ec.c b/src/usr.bin/openssl/ec.c
index d5fe68f0d8..b4e2fe1daa 100644
--- a/src/usr.bin/openssl/ec.c
+++ b/src/usr.bin/openssl/ec.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec.c,v 1.5 2015/09/11 14:30:23 bcook Exp $ */ 1/* $OpenBSD: ec.c,v 1.6 2015/10/10 22:28:51 doug Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -277,6 +277,11 @@ ec_main(int argc, char **argv)
277 BIO *in = NULL, *out = NULL; 277 BIO *in = NULL, *out = NULL;
278 char *passin = NULL, *passout = NULL; 278 char *passin = NULL, *passout = NULL;
279 279
280 if (single_execution) {
281 if (pledge("stdio rpath wpath cpath", NULL) == -1)
282 perror("pledge");
283 }
284
280 memset(&ec_config, 0, sizeof(ec_config)); 285 memset(&ec_config, 0, sizeof(ec_config));
281 286
282 ec_config.asn1_flag = OPENSSL_EC_NAMED_CURVE; 287 ec_config.asn1_flag = OPENSSL_EC_NAMED_CURVE;