summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ca.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/ca.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/ca.c')
-rw-r--r--src/usr.bin/openssl/ca.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index bbc5403e3c..e13354f4af 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.53 2022/02/03 17:44:04 tb Exp $ */ 1/* $OpenBSD: ca.c,v 1.54 2022/11/11 17:07:38 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 *
@@ -685,11 +685,9 @@ ca_main(int argc, char **argv)
685 char *tofree = NULL; 685 char *tofree = NULL;
686 DB_ATTR db_attr; 686 DB_ATTR db_attr;
687 687
688 if (single_execution) { 688 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) {
689 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { 689 perror("pledge");
690 perror("pledge"); 690 exit(1);
691 exit(1);
692 }
693 } 691 }
694 692
695 memset(&ca_config, 0, sizeof(ca_config)); 693 memset(&ca_config, 0, sizeof(ca_config));