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
-.\" $OpenBSD: openssl.1,v 1.151 2023/07/23 11:20:11 tb Exp $
+.\" $OpenBSD: openssl.1,v 1.152 2023/07/27 07:01:50 tb Exp $
.\" ====================================================================
.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
.\"
.\" copied and put under another distribution licence
.\" [including the GNU Public Licence.]
.\"
-.Dd $Mdocdate: July 23 2023 $
+.Dd $Mdocdate: July 27 2023 $
.Dt OPENSSL 1
.Os
.Sh NAME
.Tg version
.Sh VERSION
.Nm openssl version
-.Op Fl abdfopv
+.Op Fl abdfpv
.Pp
The
.Nm version
setting.
.It Fl f
Compilation flags.
-.It Fl o
-Option information: various options set when the library was built.
.It Fl p
Platform setting.
.It Fl v
-/* $OpenBSD: speed.c,v 1.33 2023/05/20 12:03:02 tb Exp $ */
+/* $OpenBSD: speed.c,v 1.34 2023/07/27 07:01:50 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
if (!mr) {
fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION));
fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON));
- printf("options:");
- printf("%s ", BN_options());
-#ifndef OPENSSL_NO_RC4
- printf("%s ", RC4_options());
-#endif
-#ifndef OPENSSL_NO_DES
- printf("%s ", DES_options());
-#endif
-#ifndef OPENSSL_NO_AES
- printf("%s ", AES_options());
-#endif
-#ifndef OPENSSL_NO_IDEA
- printf("%s ", idea_options());
-#endif
-#ifndef OPENSSL_NO_BF
- printf("%s ", BF_options());
-#endif
- fprintf(stdout, "\n%s\n", SSLeay_version(SSLEAY_CFLAGS));
+ fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_CFLAGS));
}
if (pr_header) {
if (mr)
-/* $OpenBSD: version.c,v 1.11 2023/03/06 14:32:06 tb Exp $ */
+/* $OpenBSD: version.c,v 1.12 2023/07/27 07:01:50 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
},
{
.name = "o",
- .desc = "Option information",
.type = OPTION_FLAG,
.opt.flag = &cfg.options,
},
static void
version_usage(void)
{
- fprintf(stderr, "usage: version [-abdfopv]\n");
+ fprintf(stderr, "usage: version [-abdfpv]\n");
options_usage(version_options);
}
printf("%s\n", SSLeay_version(SSLEAY_BUILT_ON));
if (cfg.platform)
printf("%s\n", SSLeay_version(SSLEAY_PLATFORM));
- if (cfg.options) {
- printf("options: ");
- printf("%s ", BN_options());
-#ifndef OPENSSL_NO_RC4
- printf("%s ", RC4_options());
-#endif
-#ifndef OPENSSL_NO_DES
- printf("%s ", DES_options());
-#endif
-#ifndef OPENSSL_NO_IDEA
- printf("%s ", idea_options());
-#endif
-#ifndef OPENSSL_NO_BF
- printf("%s ", BF_options());
-#endif
- printf("\n");
- }
if (cfg.cflags)
printf("%s\n", SSLeay_version(SSLEAY_CFLAGS));
if (cfg.dir)