There is little reason $@ should be used unquoted; also, "$@"
should be used instead of $* in order to pass the script arguments
to a function.
Fixes: bcd92754d56a "demos: fix cert scripts"
Fixes: 79b184fb4b65 "Extend certificate creation examples to include CRL generation and sample"
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28405)
#!/bin/sh
opensslcmd() {
- LD_LIBRARY_PATH=../.. ../../apps/openssl $@
+ LD_LIBRARY_PATH=../.. ../../apps/openssl "$@"
}
OPENSSL_CONF=../../apps/openssl.cnf
# called.
opensslcmd() {
- LD_LIBRARY_PATH=../.. ../../apps/openssl $@
+ LD_LIBRARY_PATH=../.. ../../apps/openssl "$@"
}
OPENSSL_CONF=../../apps/openssl.cnf
#!/bin/sh
opensslcmd() {
- LD_LIBRARY_PATH=../.. ../../apps/openssl $@
+ LD_LIBRARY_PATH=../.. ../../apps/openssl "$@"
}
# Example of running an querying OpenSSL test OCSP responder.
PORT=8888
opensslcmd ocsp -port $PORT -index index.txt -CA intca.pem \
- -rsigner resp.pem -rkey respkey.pem -rother intca.pem $*
+ -rsigner resp.pem -rkey respkey.pem -rother intca.pem "$@"