openssl/util
Viktor Dukhovni 2ac3267a86 Split arguments taking quotes into account
CA.pl supports interpolating multiple arguments into the executed
commands.  Previously these were evaluated by a shell, which supported
quoting of values that contain whitespace, backslashes, ...

With a shell no longer used (avoid command injection), backwards
compatibility requires some similar functionality.  The code now handles
double and single-quoted strings (shell-style word splitting), but not
parameter expansion ($foo remains unexpanded) or command substitution
(`cmd` and $(cmd) remain unexpanded).

On Windows system(@LIST) does not correctly preserve argv, do our
own quoting instead and use system(<$quoted_cmd>).

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27432)

(cherry picked from commit 287bbb28b0)
2025-06-04 17:34:31 +02:00
..
perl Copyright year updates 2025-02-11 14:27:50 +00:00
platform_symbols Fix URL parsing to handle missing ports and ISO 8601 timestamps in paths 2025-04-23 11:27:26 +02:00
add-depends.pl
build.info
c-compress-test.pl
cavs-to-evptest.pl
check-format-commit.sh fix: util/check-format-commit.sh - fix ending check 2024-11-01 16:57:38 +01:00
check-format-test-negatives.c
check-format-test-positives.c
check-format.pl
check-malloc-errs
checkplatformsyms.pl
ck_errf.pl
copy.pl
ctags.sh
dofile.pl
echo.pl
engines.num
err-to-raise
find-doc-nits
find-unused-errs
fips-checksums.sh
fix-deprecation
fix-includes
fix-includes.sed
help.pl
indent.pro
lang-compress.pl
libcrypto.num
libssl.num
markdownlint.rb
merge-err-lines
missingcrypto-internal.txt
missingcrypto.txt
missingcrypto111.txt
missingmacro.txt
missingmacro111.txt
missingssl-internal.txt
missingssl.txt
missingssl111.txt
mk-fipsmodule-cnf.pl
mkbuildinf.pl Copyright year updates 2025-02-11 14:27:50 +00:00
mkdef.pl
mkdir-p.pl
mkerr.pl
mkinstallvars.pl
mknum.pl
mkpod2html.pl
mkrc.pl
mktar.sh
opensslwrap.sh
other-internal.syms
other.syms
providers.num
quicserver.c
shlib_wrap.sh.in
su-filter.pl
update_abi_check.sh
withlibctx.pl
wrap.pl.in Split arguments taking quotes into account 2025-06-04 17:34:31 +02:00
write-man-symlinks