=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/pkeyparam.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- src/usr.bin/openssl/pkeyparam.c 2015/09/11 14:30:23 1.7 +++ src/usr.bin/openssl/pkeyparam.c 2015/10/10 22:28:51 1.8 @@ -1,4 +1,4 @@ -/* $OpenBSD: pkeyparam.c,v 1.7 2015/09/11 14:30:23 bcook Exp $ */ +/* $OpenBSD: pkeyparam.c,v 1.8 2015/10/10 22:28:51 doug Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006 */ @@ -117,6 +117,11 @@ BIO *in = NULL, *out = NULL; EVP_PKEY *pkey = NULL; int ret = 1; + + if (single_execution) { + if (pledge("stdio rpath wpath cpath", NULL) == -1) + perror("pledge"); + } memset(&pkeyparam_config, 0, sizeof(pkeyparam_config));