diff options
author | joshua <> | 2022-11-11 17:07:39 +0000 |
---|---|---|
committer | joshua <> | 2022-11-11 17:07:39 +0000 |
commit | f8749b129444d560b9e645a68ec7b045800243ed (patch) | |
tree | 34334d4d84a0e642e816557dc806adc84e7a2f27 /src/usr.bin/openssl/ocsp.c | |
parent | c3cccf93ef7724489b269171de95147b247b7799 (diff) | |
download | openbsd-f8749b129444d560b9e645a68ec7b045800243ed.tar.gz openbsd-f8749b129444d560b9e645a68ec7b045800243ed.tar.bz2 openbsd-f8749b129444d560b9e645a68ec7b045800243ed.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/ocsp.c')
-rw-r--r-- | src/usr.bin/openssl/ocsp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/usr.bin/openssl/ocsp.c b/src/usr.bin/openssl/ocsp.c index f954d9697b..026bd49b0a 100644 --- a/src/usr.bin/openssl/ocsp.c +++ b/src/usr.bin/openssl/ocsp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ocsp.c,v 1.21 2020/10/13 18:25:35 tb Exp $ */ | 1 | /* $OpenBSD: ocsp.c,v 1.22 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 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -750,11 +750,9 @@ ocsp_main(int argc, char **argv) | |||
750 | X509 *rca_cert = NULL; | 750 | X509 *rca_cert = NULL; |
751 | CA_DB *rdb = NULL; | 751 | CA_DB *rdb = NULL; |
752 | 752 | ||
753 | if (single_execution) { | 753 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { |
754 | if (pledge("stdio cpath wpath rpath inet dns tty", NULL) == -1) { | 754 | perror("pledge"); |
755 | perror("pledge"); | 755 | exit(1); |
756 | exit(1); | ||
757 | } | ||
758 | } | 756 | } |
759 | 757 | ||
760 | memset(&ocsp_config, 0, sizeof(ocsp_config)); | 758 | memset(&ocsp_config, 0, sizeof(ocsp_config)); |