Clean up openssl(1) command execution.
authorjoshua <joshua@openbsd.org>
Fri, 11 Nov 2022 18:24:32 +0000 (18:24 +0000)
committerjoshua <joshua@openbsd.org>
Fri, 11 Nov 2022 18:24:32 +0000 (18:24 +0000)
commitfed788491d88046d75df31cab24dafda2b1b410c
treecea9b1f97df4305d2f5db2129ccb78f4b8b5c386
parent7a7f8c7dd079fb1c77e110ada9b6a682912a4f24
Clean up openssl(1) command execution.

This cleans up the code that handles command execution for openssl(1),
displays the help message when 'openssl help' is executed, and exits
with code 1 when an invalid command is executed, matching the behaviour
of OpenSSL version 1.1+ and above.

ok tb@
usr.bin/openssl/openssl.c