summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/pkeyutl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/pkeyutl.c')
-rw-r--r--src/usr.bin/openssl/pkeyutl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c
index 09a1a9755f..d92aa161fb 100644
--- a/src/usr.bin/openssl/pkeyutl.c
+++ b/src/usr.bin/openssl/pkeyutl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkeyutl.c,v 1.16 2019/07/14 03:30:46 guenther Exp $ */ 1/* $OpenBSD: pkeyutl.c,v 1.17 2022/11/11 17:07:39 joshua Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -263,11 +263,9 @@ pkeyutl_main(int argc, char **argv)
263 263
264 int ret = 1, rv = -1; 264 int ret = 1, rv = -1;
265 265
266 if (single_execution) { 266 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) {
267 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { 267 perror("pledge");
268 perror("pledge"); 268 exit(1);
269 exit(1);
270 }
271 } 269 }
272 270
273 memset(&pkeyutl_config, 0, sizeof(pkeyutl_config)); 271 memset(&pkeyutl_config, 0, sizeof(pkeyutl_config));