OpenBSD CVS

CVS log for src/usr.bin/openssl/ciphers.c


[BACK] Up to [local] / src / usr.bin / openssl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 6 14:32:05 2023 UTC (14 months, 2 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.17: +20 -20 lines
Diff to previous 1.17 (colored)

Rename struct ${app}_config to plain cfg

All the structs are static and we need to reach into them many times.
Having a shorter name is more concise and results in less visual clutter.
It also avoids many overlong lines and we will be able to get rid of some
unfortunate line wrapping down the road.

Discussed with jsing

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 5 13:12:53 2023 UTC (14 months, 2 weeks ago) by tb
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

openssl: make all config structs static

These are per-app, so per-file. Most of them already are static, adjust
the rest of them.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Nov 11 17:07:38 2022 UTC (18 months, 1 week ago) by joshua
Branch: MAIN
Changes since 1.15: +4 -6 lines
Diff to previous 1.15 (colored)

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@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 19 20:15:19 2022 UTC (22 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

fix indent

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 19 16:07:35 2022 UTC (22 months ago) by tb
Branch: MAIN
Changes since 1.13: +39 -4 lines
Diff to previous 1.13 (colored)

Allow displaying ciphers according to protocol version

Instead of only using the default client method, allow selecting a
specific protocol version and display the supported ciphers accordingly.
This removes the noop status of -tls1 and adds -tls1_{1,2,3} as in
other commands.

ok jsing

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 14 08:37:17 2022 UTC (22 months ago) by tb
Branch: MAIN
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

Suppress output of the deprecated -tls1 option in usage() and help
output. The option wasn't documented in the manpage.

pointed out by jsing

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 14 08:35:15 2022 UTC (22 months ago) by tb
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Switch to using TLS_client_method()

Apparently, TLSv1_client_method() is used for historical reasons.
This behavior is no longer helpful if we want to know what ciphers
a TLS connection could use. This could change again after further
investigation of what the behavior should be...

ok beck jsing

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jul 14 08:07:54 2022 UTC (22 months ago) by tb
Branch: MAIN
Changes since 1.10: +20 -4 lines
Diff to previous 1.10 (colored)

Add -s option to openssl ciphers

With this option, the command only shows the ciphers supported by the
SSL method.

ok beck jsing

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jul 14 03:30:45 2019 UTC (4 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Mark the initialized struct options arrays as both static and const.
This moves them from .data to .data.rel.ro

ok deraadt@ inoguchi@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Feb 7 05:47:55 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Indent labels with a single space so that diff prototypes are more useful.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 17 15:00:11 2015 UTC (8 years, 7 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Exit if a pledge call fails in non-interactive mode.

ok semarie@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Oct 10 22:28:51 2015 UTC (8 years, 7 months ago) by doug
Branch: MAIN
Changes since 1.6: +6 -1 lines
Diff to previous 1.6 (colored)

Initial support for pledges in openssl(1) commands.

openssl(1) has two mechanisms for operating: either a single execution
of one command (looking at argv[0] or argv[1]) or as an interactive
session than may execute any number of commands.

We already have a top level pledge that should cover all commands
and that's what interactive mode must continue using.  However, we can
tighten up the pledges when only executing one command.

This is an initial stab at support and may contain regressions.  Most
commands only need "stdio rpath wpath cpath".  The pledges could be
further restricted by evaluating the situation after parsing options.

deraadt@ and beck@ are roughly fine with this approach.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Aug 19 18:25:31 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored)

bring prototypes into scope, requires movement of a large global object
out of .h file
ok jsing

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 17 16:04:09 2015 UTC (8 years, 10 months ago) by doug
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.4: +5 -27 lines
Diff to previous 1.4 (colored)

Remove support for SSLv3 from openssl(1) ciphers.

ok miod@ bcook@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 2 07:51:25 2015 UTC (9 years, 2 months ago) by bcook
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

use correct formatter (int, because of type promotion after operations)

ok jsing@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Feb 9 05:22:56 2015 UTC (9 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.2: +4 -2 lines
Diff to previous 1.2 (colored)

Remember to zero the ciphers configuration.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Feb 9 01:15:28 2015 UTC (9 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.1: +129 -159 lines
Diff to previous 1.1 (colored)

Rewrite the openssl(1) ciphers command.

This has the same functionality as the previous version, however uses the
new option handling code, uses SSL_CIPHER_get_value() since we no longer
care about SSlv2 cipher suites and uses standard I/O functions instead of
BIO functions.

ok beck@ doug@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 26 17:47:24 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN

Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is not
a system/superuser binary. At the same time, move the source code from its
current lib/libssl/src/apps location to a more appropriate home under
usr.bin/openssl.

ok deraadt@ miod@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.