summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/genrsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr.bin/openssl/genrsa.c')
-rw-r--r--src/usr.bin/openssl/genrsa.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/genrsa.c b/src/usr.bin/openssl/genrsa.c
index 647b691e7f..e1628a682e 100644
--- a/src/usr.bin/openssl/genrsa.c
+++ b/src/usr.bin/openssl/genrsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: genrsa.c,v 1.20 2022/10/04 15:31:02 espie Exp $ */ 1/* $OpenBSD: genrsa.c,v 1.21 2022/11/11 17:07:39 joshua Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -280,11 +280,9 @@ genrsa_main(int argc, char **argv)
280 RSA *rsa = NULL; 280 RSA *rsa = NULL;
281 char *rsa_e_hex = NULL, *rsa_e_dec = NULL; 281 char *rsa_e_hex = NULL, *rsa_e_dec = NULL;
282 282
283 if (single_execution) { 283 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) {
284 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { 284 perror("pledge");
285 perror("pledge"); 285 exit(1);
286 exit(1);
287 }
288 } 286 }
289 287
290 if ((bn = BN_new()) == NULL) 288 if ((bn = BN_new()) == NULL)