openssl/apps
Matt Caswell ca3245a619 If an empty password is supplied still try to use it
If an empty password was supplied we ignored it and were trying to use
the fallback method to read the password instead (i.e. read from stdin).
However if that failed (which it always does if the cmp option -batch is
used) then we were reporting that we had successfully read the password
without actually setting one.

Instead, if an empty password is explicitly provided we should use it. If
no password is supplied explicitly and we have no fallback method then we
assume the empty password.

[extended tests]

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12275)
2020-07-03 17:20:38 +01:00
..
demoSRP Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
include Add request URL path checking and status responses to HTTP server 2020-06-13 15:13:21 +02:00
lib If an empty password is supplied still try to use it 2020-07-03 17:20:38 +01:00
asn1pars.c Update copyright year 2020-05-15 14:09:49 +01:00
build.info Build: make apps/progs.c depend on configdata.pm 2020-05-15 20:06:08 +02:00
ca-cert.srl
ca-key.pem
ca-req.pem
ca.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
CA.pl.in Update copyright year 2020-04-23 13:55:52 +01:00
cert.pem
ciphers.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
client.pem
cmp_mock_srv.c Remove extra newline from CMP mock server error and add TODO on using request template 2020-06-13 15:13:21 +02:00
cmp_mock_srv.h Chunk 8 of CMP contribution to OpenSSL: CMP server and cmp_mock_srv.c for testing 2020-03-10 16:09:44 +01:00
cmp.c apps/cmp.c: Add workaround for Coverity false positive; rename e -> engine 2020-06-25 07:49:41 +10:00
cms.c CMS print should support string conversion 2020-06-24 09:56:50 +03:00
crl2p7.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
crl.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
ct_log_list.cnf Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
dgst.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
dhparam.c Make error output of dhparams and dsaparams app more consistent 2020-06-10 11:08:21 +02:00
dsa512.pem
dsa1024.pem
dsa-ca.pem
dsa-pca.pem
dsa.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
dsap.pem
dsaparam.c coverity 1464212, 1464214 & 1464215: Resource leaks 2020-06-17 15:59:58 +10:00
ec.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
ecparam.c Move EC_METHOD to internal-only 2020-06-02 11:17:24 +03:00
enc.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
engine.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
errstr.c Document command parameters. 2019-11-20 09:49:52 +01:00
fipsinstall.c Add --fips-key configuration parameter to fipsinstall application. 2020-06-29 12:20:41 +10:00
gendsa.c Update copyright year 2020-04-23 13:55:52 +01:00
genpkey.c Update copyright year 2020-04-23 13:55:52 +01:00
genrsa.c Update RSA keygen to use sp800-56b by default 2020-06-10 08:59:56 +10:00
info.c Add "sections" to -help output 2019-11-08 06:08:30 +10:00
kdf.c kdf: make function naming consistent. 2020-06-11 11:14:21 +10:00
list.c app/list: add RNG list option 2020-06-24 20:05:41 +10:00
mac.c The EVP_MAC functions have been renamed for consistency. The EVP_MAC_CTX_* 2020-06-11 11:16:37 +10:00
nseq.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
ocsp.c APPS: Properly pass -no-CAstore 2020-06-23 12:25:48 +02:00
openssl-vms.cnf Cleanup cert config files for tests 2020-06-03 09:56:56 +02:00
openssl.c apps/openssl: clean-up of unused fallback code 2020-06-28 18:49:50 +02:00
openssl.cnf Cleanup cert config files for tests 2020-06-03 09:56:56 +02:00
passwd.c Update copyright year 2020-04-23 13:55:52 +01:00
pca-cert.srl
pca-key.pem
pca-req.pem
pkcs7.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
pkcs8.c Update copyright year 2020-04-23 13:55:52 +01:00
pkcs12.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
pkey.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
pkeyparam.c Update copyright year 2020-04-23 13:55:52 +01:00
pkeyutl.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
prime.c Update copyright year 2020-04-23 13:55:52 +01:00
privkey.pem
progs.pl Update copyright year 2020-04-23 13:55:52 +01:00
provider.c Rename <openssl/core_numbers.h> -> <openssl/core_dispatch.h> 2020-06-24 22:01:22 +02:00
rand.c Update copyright year 2020-04-23 13:55:52 +01:00
rehash.c In OpenSSL builds, declare STACK for datatypes ... 2020-04-24 16:42:46 +02:00
req.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
req.pem
rsa8192.pem Fix rsa8192.pem 2020-05-13 06:28:36 +02:00
rsa.c Fix nits detected by make cmd-nits 2020-06-14 02:15:51 +03:00
rsautl.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
s512-key.pem
s512-req.pem
s1024key.pem
s1024req.pem
s_client.c Force ssl/tls protocol flags to use stream sockets 2020-06-30 11:12:59 +10:00
s_server.c Introducing option SSL_OP_IGNORE_UNEXPECTED_EOF 2020-05-19 19:04:11 +03:00
s_time.c Update copyright year 2020-04-23 13:55:52 +01:00
server2.pem
server.pem Replace apps/server.pem with certificate with a sha256 signature. 2020-01-25 14:10:40 +01:00
server.srl
sess_id.c Add "sections" to -help output 2019-11-08 06:08:30 +10:00
smime.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
speed.c APPS: Use a second EVP_MD_CTX for EdDSA verify 2020-06-11 17:28:10 +03:00
spkac.c Use OSSL_STORE for load_{,pub}key() and load_cert() in apps/lib/apps.c 2020-05-15 20:20:08 +02:00
srp.c Update copyright year 2020-04-23 13:55:52 +01:00
storeutl.c Update copyright year 2020-04-23 13:55:52 +01:00
testCA.pem
testdsa.h Following the license change, modify the boilerplates in apps/ 2018-12-06 14:15:27 +01:00
testrsa.h Following the license change, modify the boilerplates in apps/ 2018-12-06 14:15:27 +01:00
timeouts.h Fix header file include guard names 2019-09-28 20:26:36 +02:00
ts.c Update copyright year 2020-04-23 13:55:52 +01:00
tsget.in apps/tsget.in: use the full version in the user agent string 2018-12-10 20:09:17 +01:00
verify.c Improve documentation, layout, and code comments regarding self-issued certs etc. 2020-07-01 11:14:54 +02:00
version.c Update copyright year 2020-04-23 13:55:52 +01:00
vms_decc_init.c VMS: move copy_argc to its own module and make it an aux source 2019-03-05 08:51:09 +01:00
x509.c Improve documentation, layout, and code comments regarding self-issued certs etc. 2020-07-01 11:14:54 +02:00