summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/genrsa.c
diff options
context:
space:
mode:
authorjoshua <>2022-11-11 17:07:39 +0000
committerjoshua <>2022-11-11 17:07:39 +0000
commit273d9e16fc9e481283c2b2302b348e4863e29f28 (patch)
tree34334d4d84a0e642e816557dc806adc84e7a2f27 /src/usr.bin/openssl/genrsa.c
parentca40b252ed3f1431ba1b5799c7114defd5830b95 (diff)
downloadopenbsd-273d9e16fc9e481283c2b2302b348e4863e29f28.tar.gz
openbsd-273d9e16fc9e481283c2b2302b348e4863e29f28.tar.bz2
openbsd-273d9e16fc9e481283c2b2302b348e4863e29f28.zip
Remove the legacy interactive mode from openssl(1).
This removes the legacy interactive mode from openssl(1) since it is rarely used, complicates the code, and has also been removed from OpenSSL in version 3.x.x. ok tb@ jsing@
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)