summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-27 07:01:50 +0000
committertb <>2023-07-27 07:01:50 +0000
commit74e29e29a715efa5cc5edec834b19dbf7597aaa3 (patch)
tree8a5351e84224adbf4a3243b5fee9fa42d7a4121b
parentc9ae1f3a7087667216308d69c572449f42a3570e (diff)
downloadopenbsd-74e29e29a715efa5cc5edec834b19dbf7597aaa3.tar.gz
openbsd-74e29e29a715efa5cc5edec834b19dbf7597aaa3.tar.bz2
openbsd-74e29e29a715efa5cc5edec834b19dbf7597aaa3.zip
Remove antiquated options output
This is uninteresting and rather meaningless except for the implementer. No need to have several hundred lines of code backing half a dozen symbols in the public API for this. ok jsing
-rw-r--r--src/usr.bin/openssl/openssl.18
-rw-r--r--src/usr.bin/openssl/speed.c21
-rw-r--r--src/usr.bin/openssl/version.c22
3 files changed, 7 insertions, 44 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index da4c4ffefc..be060a3e54 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.151 2023/07/23 11:20:11 tb Exp $ 1.\" $OpenBSD: openssl.1,v 1.152 2023/07/27 07:01:50 tb Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -110,7 +110,7 @@
110.\" copied and put under another distribution licence 110.\" copied and put under another distribution licence
111.\" [including the GNU Public Licence.] 111.\" [including the GNU Public Licence.]
112.\" 112.\"
113.Dd $Mdocdate: July 23 2023 $ 113.Dd $Mdocdate: July 27 2023 $
114.Dt OPENSSL 1 114.Dt OPENSSL 1
115.Os 115.Os
116.Sh NAME 116.Sh NAME
@@ -6049,7 +6049,7 @@ itself, then 1 for the CA that signed the certificate and so on.
6049.Tg version 6049.Tg version
6050.Sh VERSION 6050.Sh VERSION
6051.Nm openssl version 6051.Nm openssl version
6052.Op Fl abdfopv 6052.Op Fl abdfpv
6053.Pp 6053.Pp
6054The 6054The
6055.Nm version 6055.Nm version
@@ -6069,8 +6069,6 @@ was built.
6069setting. 6069setting.
6070.It Fl f 6070.It Fl f
6071Compilation flags. 6071Compilation flags.
6072.It Fl o
6073Option information: various options set when the library was built.
6074.It Fl p 6072.It Fl p
6075Platform setting. 6073Platform setting.
6076.It Fl v 6074.It Fl v
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c
index a1a69c267f..f50d224064 100644
--- a/src/usr.bin/openssl/speed.c
+++ b/src/usr.bin/openssl/speed.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: speed.c,v 1.33 2023/05/20 12:03:02 tb Exp $ */ 1/* $OpenBSD: speed.c,v 1.34 2023/07/27 07:01:50 tb 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 *
@@ -1746,24 +1746,7 @@ show_res:
1746 if (!mr) { 1746 if (!mr) {
1747 fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); 1747 fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION));
1748 fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); 1748 fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON));
1749 printf("options:"); 1749 fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_CFLAGS));
1750 printf("%s ", BN_options());
1751#ifndef OPENSSL_NO_RC4
1752 printf("%s ", RC4_options());
1753#endif
1754#ifndef OPENSSL_NO_DES
1755 printf("%s ", DES_options());
1756#endif
1757#ifndef OPENSSL_NO_AES
1758 printf("%s ", AES_options());
1759#endif
1760#ifndef OPENSSL_NO_IDEA
1761 printf("%s ", idea_options());
1762#endif
1763#ifndef OPENSSL_NO_BF
1764 printf("%s ", BF_options());
1765#endif
1766 fprintf(stdout, "\n%s\n", SSLeay_version(SSLEAY_CFLAGS));
1767 } 1750 }
1768 if (pr_header) { 1751 if (pr_header) {
1769 if (mr) 1752 if (mr)
diff --git a/src/usr.bin/openssl/version.c b/src/usr.bin/openssl/version.c
index 6ff1860ead..991e213b82 100644
--- a/src/usr.bin/openssl/version.c
+++ b/src/usr.bin/openssl/version.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: version.c,v 1.11 2023/03/06 14:32:06 tb Exp $ */ 1/* $OpenBSD: version.c,v 1.12 2023/07/27 07:01:50 tb 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 *
@@ -184,7 +184,6 @@ static const struct option version_options[] = {
184 }, 184 },
185 { 185 {
186 .name = "o", 186 .name = "o",
187 .desc = "Option information",
188 .type = OPTION_FLAG, 187 .type = OPTION_FLAG,
189 .opt.flag = &cfg.options, 188 .opt.flag = &cfg.options,
190 }, 189 },
@@ -206,7 +205,7 @@ static const struct option version_options[] = {
206static void 205static void
207version_usage(void) 206version_usage(void)
208{ 207{
209 fprintf(stderr, "usage: version [-abdfopv]\n"); 208 fprintf(stderr, "usage: version [-abdfpv]\n");
210 options_usage(version_options); 209 options_usage(version_options);
211} 210}
212 211
@@ -241,23 +240,6 @@ version_main(int argc, char **argv)
241 printf("%s\n", SSLeay_version(SSLEAY_BUILT_ON)); 240 printf("%s\n", SSLeay_version(SSLEAY_BUILT_ON));
242 if (cfg.platform) 241 if (cfg.platform)
243 printf("%s\n", SSLeay_version(SSLEAY_PLATFORM)); 242 printf("%s\n", SSLeay_version(SSLEAY_PLATFORM));
244 if (cfg.options) {
245 printf("options: ");
246 printf("%s ", BN_options());
247#ifndef OPENSSL_NO_RC4
248 printf("%s ", RC4_options());
249#endif
250#ifndef OPENSSL_NO_DES
251 printf("%s ", DES_options());
252#endif
253#ifndef OPENSSL_NO_IDEA
254 printf("%s ", idea_options());
255#endif
256#ifndef OPENSSL_NO_BF
257 printf("%s ", BF_options());
258#endif
259 printf("\n");
260 }
261 if (cfg.cflags) 243 if (cfg.cflags)
262 printf("%s\n", SSLeay_version(SSLEAY_CFLAGS)); 244 printf("%s\n", SSLeay_version(SSLEAY_CFLAGS));
263 if (cfg.dir) 245 if (cfg.dir)