mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
0e83981d61
The password_callback() function does not necessarily NULL terminate the password buffer, the caller must use the returned length but the srp app uses this function as if it was doing NULL termination. This made the -passin and -passout options of "openssl srp" fail inexpicably and randomly or even crash. Fixed by enlarging the buffer by one, so that the maximum password length remains unchanged, and adding NULL termination upon return. [Rearrange code for coding style compliance in process.] Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3475) |
||
---|---|---|
.. | ||
demoSRP | ||
app_rand.c | ||
apps.c | ||
apps.h | ||
asn1pars.c | ||
build.info | ||
ca-cert.srl | ||
ca-key.pem | ||
ca-req.pem | ||
ca.c | ||
CA.pl.in | ||
cert.pem | ||
ciphers.c | ||
client.pem | ||
cms.c | ||
crl2p7.c | ||
crl.c | ||
ct_log_list.cnf | ||
dgst.c | ||
dh1024.pem | ||
dh2048.pem | ||
dh4096.pem | ||
dhparam.c | ||
dsa512.pem | ||
dsa1024.pem | ||
dsa-ca.pem | ||
dsa-pca.pem | ||
dsa.c | ||
dsap.pem | ||
dsaparam.c | ||
ec.c | ||
ecparam.c | ||
enc.c | ||
engine.c | ||
errstr.c | ||
gendsa.c | ||
genpkey.c | ||
genrsa.c | ||
nseq.c | ||
ocsp.c | ||
openssl-vms.cnf | ||
openssl.c | ||
openssl.cnf | ||
opt.c | ||
passwd.c | ||
pca-cert.srl | ||
pca-key.pem | ||
pca-req.pem | ||
pkcs7.c | ||
pkcs8.c | ||
pkcs12.c | ||
pkey.c | ||
pkeyparam.c | ||
pkeyutl.c | ||
prime.c | ||
privkey.pem | ||
progs.h | ||
progs.pl | ||
rand.c | ||
rehash.c | ||
req.c | ||
req.pem | ||
rsa8192.pem | ||
rsa.c | ||
rsautl.c | ||
s512-key.pem | ||
s512-req.pem | ||
s1024key.pem | ||
s1024req.pem | ||
s_apps.h | ||
s_cb.c | ||
s_client.c | ||
s_server.c | ||
s_socket.c | ||
s_time.c | ||
server2.pem | ||
server.pem | ||
server.srl | ||
sess_id.c | ||
smime.c | ||
speed.c | ||
spkac.c | ||
srp.c | ||
testCA.pem | ||
testdsa.h | ||
testrsa.h | ||
timeouts.h | ||
ts.c | ||
tsget.in | ||
verify.c | ||
version.c | ||
vms_decc_init.c | ||
vms_term_sock.c | ||
vms_term_sock.h | ||
win32_init.c | ||
x509.c |