summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/ts.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/ts.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/ts.c')
-rw-r--r--src/usr.bin/openssl/ts.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ts.c b/src/usr.bin/openssl/ts.c
index 24301b69a5..05387de130 100644
--- a/src/usr.bin/openssl/ts.c
+++ b/src/usr.bin/openssl/ts.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts.c,v 1.24 2022/09/11 18:08:17 tb Exp $ */ 1/* $OpenBSD: ts.c,v 1.25 2022/11/11 17:07:39 joshua Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2002. 3 * project 2002.
4 */ 4 */
@@ -377,11 +377,9 @@ ts_main(int argc, char **argv)
377 CONF *conf = NULL; 377 CONF *conf = NULL;
378 char *password = NULL; /* Password itself. */ 378 char *password = NULL; /* Password itself. */
379 379
380 if (single_execution) { 380 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) {
381 if (pledge("stdio cpath wpath rpath tty", NULL) == -1) { 381 perror("pledge");
382 perror("pledge"); 382 exit(1);
383 exit(1);
384 }
385 } 383 }
386 384
387 memset(&ts_config, 0, sizeof(ts_config)); 385 memset(&ts_config, 0, sizeof(ts_config));