=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/ecparam.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- src/usr.bin/openssl/ecparam.c 2015/09/11 14:30:23 1.13 +++ src/usr.bin/openssl/ecparam.c 2015/10/10 22:28:51 1.14 @@ -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. */ @@ -258,6 +258,11 @@ unsigned char *buffer = NULL; 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;