OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.67 / (download) - annotate - [select for diffs], Tue Nov 21 17:56:19 2023 UTC (5 months, 3 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

Make a few purpose things const

This should allow us to constify a sizable table in libcrypto in an
upcoming bump.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jul 23 11:39:29 2023 UTC (9 months, 3 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

sprinkle some void between () in function definitions

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jun 11 12:35:00 2023 UTC (11 months, 1 week ago) by jsg
Branch: MAIN
Changes since 1.64: +1 -70 lines
Diff to previous 1.64 (colored)

remove chopup_args() unused since apps.c rev 1.31
ok tb@

Revision 1.64 / (download) - annotate - [select for diffs], Sat Apr 22 20:50:26 2023 UTC (12 months, 3 weeks ago) by tb
Branch: MAIN
Changes since 1.63: +6 -2 lines
Diff to previous 1.63 (colored)

Fix UTF-8 issuer printing

If no field separator is specified, default to using the comma plus space
separation, unless the compat flag is set.

Fixes an a bug with printing issuers and other things that contain UTF-8

Reported by Jean-Luc Duprat
The very simple fix ix is a joint effort by Henson and Levitte
Fixes libressl/portable issue #845

ok jsing

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 14 15:27:13 2023 UTC (13 months ago) by tb
Branch: MAIN
Changes since 1.62: +1 -42 lines
Diff to previous 1.62 (colored)

Drop policy printing from openssl

Nothing really uses the policy tree. It's desgined with built-in DoS
capabilities directly from the RFC. It will be removed from the attack
surface and replaced with something equivalent that doesn't grow
exponentially with the depth.

This removes the only reason the policy tree itself ever leaked out of
the library.

ok jsing

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jan 10 12:17:49 2022 UTC (2 years, 4 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.61: +29 -1 lines
Diff to previous 1.61 (colored)

Implement openssl pkey -{,pub}check and pkeyparam -check

These expose EVP_PKEY_{,public_,param_}check() to the command line.
They are currently noops and will be enabled in the upcoming bump.

ok inoguchi jsing

Revision 1.61 / (download) - annotate - [select for diffs], Fri Nov 26 16:23:27 2021 UTC (2 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.60: +2 -80 lines
Diff to previous 1.60 (colored)

openssl(1): drop support for netscape certificates and server gated keys.

ok inoguchi jsing

Revision 1.60 / (download) - annotate - [select for diffs], Wed Mar 31 17:13:54 2021 UTC (3 years, 1 month ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.59: +1 -8 lines
Diff to previous 1.59 (colored)

Remove workarounds for SSL_is_dtls()

Reminded by inoguchi jsing

Revision 1.59 / (download) - annotate - [select for diffs], Wed Mar 24 12:07:39 2021 UTC (3 years, 1 month ago) by inoguchi
Branch: MAIN
Changes since 1.58: +5 -1 lines
Diff to previous 1.58 (colored)

Add option type OPTION_ORDER

To handle incremental order value, added new option type OPTION_ORDER.
openssl(1) x509 requires this option handling, since,
- -CA and -signkey require to set both filename and incremental 'num'.
- -dates requires to set two variables in a row, startdate and enddate.
and this couldn't be solved by OPTION_FLAG_ORD.

ok tb@ and "I'd move forward with your current plan." from jsing@

Revision 1.58 / (download) - annotate - [select for diffs], Wed Mar 17 18:08:32 2021 UTC (3 years, 2 months ago) by jsing
Branch: MAIN
Changes since 1.57: +9 -3 lines
Diff to previous 1.57 (colored)

Add DTLSv1.2 support to openssl(1) s_client/s_server.

ok inoguchi@ tb@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Oct 26 11:48:39 2020 UTC (3 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.56: +3 -1 lines
Diff to previous 1.56 (colored)

Add a -legacy_verify flag to force use of the old validator for debugging
and testing purposes.

ok beck inoguchi jsing

Revision 1.56 / (download) - annotate - [select for diffs], Wed Oct 14 07:20:09 2020 UTC (3 years, 7 months ago) by tb
Branch: MAIN
Changes since 1.55: +1 -2 lines
Diff to previous 1.55 (colored)

no need to initialize i if it's re-initialized a few lines down

Revision 1.55 / (download) - annotate - [select for diffs], Wed Sep 9 12:47:46 2020 UTC (3 years, 8 months ago) by inoguchi
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored)

Add option type OPTION_UL_VALUE_OR

ok tb@

Revision 1.54 / (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_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Wed Jul 3 03:24:02 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

snprintf/vsnprintf return < 0 on error, rather than -1.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:02 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.51: +14 -14 lines
Diff to previous 1.51 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Feb 9 15:49:21 2019 UTC (5 years, 3 months ago) by inoguchi
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Fix weird wrap showing cipher list in interactive mode

ok jsing@ tb@

Revision 1.50 / (download) - annotate - [select for diffs], Sat Feb 9 06:27:37 2019 UTC (5 years, 3 months ago) by inoguchi
Branch: MAIN
Changes since 1.49: +13 -1 lines
Diff to previous 1.49 (colored)

Summarize the 4 same name functions and move it to apps.c

ok tb@ jsing@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 16 16:56:51 2018 UTC (5 years, 9 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.48: +6 -3 lines
Diff to previous 1.48 (colored)

Revert previous, which was wrong as noted by schwarze. Also revert a hunk
from r1.45 and thereby avoid a use-after-free spotted by schwarze.

ok schwarze

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 16 10:26:34 2018 UTC (5 years, 9 months ago) by rob
Branch: MAIN
Changes since 1.47: +3 -5 lines
Diff to previous 1.47 (colored)

Remove unused variable.

From Nan at chinadtrace dot org. Thanks!

Revision 1.47 / (download) - annotate - [select for diffs], Wed Feb 7 08:57:25 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

Restore a check before BN_free() that needs to exist and write it such that
the intent is more obvious.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Feb 7 05:47:55 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.45: +22 -22 lines
Diff to previous 1.45 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 7 04:25:19 2018 UTC (6 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.44: +15 -27 lines
Diff to previous 1.44 (colored)

Remove guards around *_free() calls since these functions handle NULL.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Aug 12 21:04:33 2017 UTC (6 years, 9 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored)

Remove NPN support - the -nextprotoneg options now become no-ops.

ok bcook@ beck@ doug@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 18 02:15:50 2017 UTC (7 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.42: +2 -5 lines
Diff to previous 1.42 (colored)

use freezero() instead of 4-line conditional explicit_bzero + free

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jan 21 09:29:09 2017 UTC (7 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

whitespace

Revision 1.41 / (download) - annotate - [select for diffs], Fri Dec 30 16:28:53 2016 UTC (7 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Expand ASN1_ITEM_rptr macros here as well... used with NETSCAPE_X509 of all
things...

Revision 1.40 / (download) - annotate - [select for diffs], Sun Sep 4 09:00:14 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Options that take a time argument....take an argument

diff from Kinichiro Inoguchi (kinichiro.inoguchi (at) gmail.com)

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 30 14:34:59 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +11 -1 lines
Diff to previous 1.38 (colored)

Add OPTION_ARG_TIME for parsing a (64 bit if needed) time_t
prodding & ok jsing

Revision 1.38 / (download) - annotate - [select for diffs], Fri Aug 26 15:04:15 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.37: +87 -86 lines
Diff to previous 1.37 (colored)

Repeated occurances of the idiom buf[5][BUFSIZ] -- ridiculous.  Give each
buf a special name, recognize that most are PATH_MAX, and remove a few that
are not needed at all.
ok jsing beck

Revision 1.37 / (download) - annotate - [select for diffs], Sat Nov 14 14:53:14 2015 UTC (8 years, 6 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

mutli -> multi

Revision 1.36 / (download) - annotate - [select for diffs], Sun Sep 13 12:41:01 2015 UTC (8 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.35: +25 -52 lines
Diff to previous 1.35 (colored)

Factor out setup_up / destroy_ui functions.

This pulls out and renames setup_ui/destroy_ui so we have something that
can be replaced as-needed, moving the the console setup code for Windows
to app_win.c in -portable, instead of needing a local patch to enable binary
console mode

ui_read/write are also simplified.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Sep 11 14:30:23 2015 UTC (8 years, 8 months ago) by bcook
Branch: MAIN
Changes since 1.34: +11 -92 lines
Diff to previous 1.34 (colored)

Remove engine command and parameters from openssl(1).

We do not have any builtin or dynamic engines, meaning openssl(1) has
no way to use the engine command or parameters at all.

ok jsing@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 10 16:01:06 2015 UTC (8 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

Correct spelling of OPENSSL_cleanse.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 21 03:47:17 2015 UTC (8 years, 10 months ago) by bcook
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

remove superfluous strings.h

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 20 22:51:11 2015 UTC (8 years, 10 months ago) by bcook
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

app_tminterval moved to apps_posix.c, we don't need sys/times.h

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 20 03:28:04 2015 UTC (8 years, 10 months ago) by doug
Branch: MAIN
Changes since 1.30: +15 -4 lines
Diff to previous 1.30 (colored)

Check return value for ENGINE_ctrl and ENGINE_ctrl_cmd.

Fixes Coverity issue 21645.

ok bcook@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 20 02:41:10 2015 UTC (8 years, 10 months ago) by doug
Branch: MAIN
Changes since 1.29: +36 -8 lines
Diff to previous 1.29 (colored)

Warn when rename() fails in openssl(1) apps.

Fixes Coverity issues 78795 and 78803.

ok bcook@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jul 16 15:03:35 2015 UTC (8 years, 10 months ago) by beck
Branch: MAIN
Changes since 1.28: +5 -2 lines
Diff to previous 1.28 (colored)

kill leak, found by coverity, ID 105348
ok miod@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jul 15 13:54:34 2015 UTC (8 years, 10 months ago) by jsing
Branch: MAIN
Changes since 1.27: +13 -2 lines
Diff to previous 1.27 (colored)

Add OPTION_ARG_LONG for handling of options with a long type.

ok doug@

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jun 19 07:18:58 2015 UTC (8 years, 11 months ago) by bcook
Branch: MAIN
Changes since 1.26: +2 -18 lines
Diff to previous 1.26 (colored)

Remove fallback dynamic engine loading support.

Since we no longer have dynamic engines, don't bother falling back to them
if a builtin engine is not found first.

Before:

$ openssl dgst -engine unknown
invalid engine "unknown"
27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such
engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=unknown
27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such
engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=dynamic

After:

$ openssl dgst -engine unknown
invalid engine "unknown"
27256010481532:error:2606A074:engine routines:ENGINE_by_id:no such
engine:/usr/src/lib/libcrypto/crypto/../../libssl/src/crypto/engine/eng_list.c:384:id=unknown

ok doug@

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 16 02:27:24 2015 UTC (8 years, 11 months ago) by doug
Branch: MAIN
Changes since 1.25: +4 -1 lines
Diff to previous 1.25 (colored)

Add support for OPTION_DISCARD.

ok jsing@

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 7 04:09:43 2015 UTC (9 years, 3 months ago) by bcook
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.24: +12 -12 lines
Diff to previous 1.24 (colored)

Modify BSIZE to BUFLEN to avoid redefinition on HP-UX.

HP-UX defines BSIZE in its <sys/param.h>, and there is a route where its
getting included as a side-effect. I tracked back to at least from HP-UX 9.0
ca. 1993, up to the latest, so the user namespace is polluted.

from kinichiro <kinichiro.inoguchi@gmail.com>

ok miod@, jsing@

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 3 03:03:39 2015 UTC (9 years, 4 months ago) by lteo
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Check the return values of several reallocarray() calls.  While here,
also check the return value of an adjacent malloc() call.

ok jsing@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 1 14:28:00 2015 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.22: +9 -1 lines
Diff to previous 1.22 (colored)

Provide option types for binary AND, binary OR and silently discarding an
option.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Dec 28 16:51:31 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Fix subtle typo.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 28 16:33:34 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Allow a default option to be specified by having a NULL name, but a valid
option type. In this case process the option as per normal.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 28 16:22:37 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.19: +8 -1 lines
Diff to previous 1.19 (colored)

Provide an option type that allows for a callback function to consume an
arbitrary number of arguments. This will allow for more complex option
handling as required by some of the openssl(1) applications.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 28 16:10:33 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.18: +13 -1 lines
Diff to previous 1.18 (colored)

Teach option parsing that a single hyphen denotes the end of named options
(as currently only implemented by some of the openssl(1) applications).

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 28 15:48:52 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.17: +8 -1 lines
Diff to previous 1.17 (colored)

Provide a mechanism for option parsing to return the number of arguments
that it has consumed. This allows for the handling of multiple unnamed
arguments, including lists of filenames.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Dec 28 15:05:38 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.16: +12 -1 lines
Diff to previous 1.16 (colored)

Only accept a single unnamed argument - the existing behaviour is to
silently accept multiple unnamed arguments, ignoring all except the last.
This behaviour was already inconsistent between openssl(1) applications;
apply the principal of least surprise. This will also simplify the addition
of upcoming functionality.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 28 14:50:15 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.15: +58 -65 lines
Diff to previous 1.15 (colored)

Slightly simplify options parsing logic.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 28 14:21:42 2014 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Provide two different function pointers for option function callbacks. This
allows for simpler code in the common cases and will allow for further
extension to support the complex cases.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 14 14:42:06 2014 UTC (9 years, 5 months ago) by jsing
Branch: MAIN
Changes since 1.13: +1 -4 lines
Diff to previous 1.13 (colored)

unifdef OPENSSL_NO_NEXTPROTONEG

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 3 22:16:02 2014 UTC (9 years, 5 months ago) by bcook
Branch: MAIN
Changes since 1.12: +2 -23 lines
Diff to previous 1.12 (colored)

Move Windows OS-specific functions to make porting easier.

Several functions that need to be redefined for a Windows port are right
in the middle of other code that is relatively portable. This patch
isolates the functions that need Windows-specific implementations so
they can be built conditionally in the portable tree.

Add calls to BIO_sock_init() as-needed to openssl(1) so that socket IO works on
Windows. Sorry, these are no-op on other platforms.

ok jsing@ deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 7 14:16:48 2014 UTC (9 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

More OPENSSL_NO_TLSEXT clean up.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 16 10:43:54 2014 UTC (9 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Repair BUF_strdup() breakage.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 1 14:21:06 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.9: +20 -7 lines
Diff to previous 1.9 (colored)

Improve option usage output.

If the option/argument string exceeds the given width, add a hanging indent
prior to displaying the description. Also, if the description includes
newlines, wrap and indent for each newline so that the indentation is
correctly maintained.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Aug 30 15:14:03 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8 (colored)

Move the callback function pointer outside the opt union so that the option
values are useable by the function. Also provide an option type that calls
a function without consuming/passing an argument.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 28 14:15:28 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.7: +7 -1 lines
Diff to previous 1.7 (colored)

Add option handling with a callback function for argument processing.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 28 13:55:19 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Given the usage option name/argument name width a few more characters.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Aug 28 13:51:38 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.5: +10 -2 lines
Diff to previous 1.5 (colored)

Ensure that a format option argument is a known specifier.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Aug 28 13:39:07 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.4: +5 -0 lines
Diff to previous 1.4 (colored)

Add option handling for ordered flags.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 28 13:37:41 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.3: +6 -1 lines
Diff to previous 1.3 (colored)

Add option handling for input/output formats.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 27 15:51:41 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.2: +20 -3 lines
Diff to previous 1.2 (colored)

Add an option type that handles argument to integer conversion.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 27 14:59:44 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.1: +96 -1 lines
Diff to previous 1.1 (colored)

Implement table-driven option parsing that allows an application to
specify what its valid options are and where it wants them to be stored.
This also allows for usage to be generated, almost for free, ensuring
that the options and usage are automatically kept in sync.

This will allow for a single option parsing implementation, rather than the
current one-hand-rolled-option-parsing-and-random-usage-implementation per
application.

As a starting point, port the openssl(1) rand application to the new option
parsing and usage (along with associated code clean up).

With input from doug@.

ok bcook@ 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.