mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-11 03:31:36 +00:00
MINOR: ssl: crt-list do ckchn_lookup
This commit is contained in:
parent
572d9f5847
commit
eed4bf234e
@ -3853,22 +3853,18 @@ int ssl_sock_load_cert_list_file(char *file, struct bind_conf *bind_conf, struct
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stat(crt_path, &buf) == 0) {
|
if ((ckchn = ckchn_lookup(crt_path)) == NULL) {
|
||||||
|
if (stat(crt_path, &buf) == 0)
|
||||||
ckchn = ckchn_load_cert_file(crt_path, 0, err);
|
ckchn = ckchn_load_cert_file(crt_path, 0, err);
|
||||||
if (!ckchn)
|
|
||||||
cfgerr++;
|
|
||||||
else
|
else
|
||||||
cfgerr = ssl_sock_load_ckchn(crt_path, ckchn, bind_conf, ssl_conf,
|
|
||||||
&args[cur_arg], arg - cur_arg - 1, err);
|
|
||||||
} else {
|
|
||||||
ckchn = ckchn_load_cert_file(crt_path, 1, err);
|
ckchn = ckchn_load_cert_file(crt_path, 1, err);
|
||||||
|
}
|
||||||
|
|
||||||
if (!ckchn)
|
if (!ckchn)
|
||||||
cfgerr++;
|
cfgerr++;
|
||||||
else
|
else
|
||||||
cfgerr = ssl_sock_load_multi_ckchn(crt_path, ckchn, bind_conf, ssl_conf,
|
cfgerr += ssl_sock_load_ckchn(crt_path, ckchn, bind_conf, ssl_conf,
|
||||||
&args[cur_arg], arg - cur_arg - 1, err);
|
&args[cur_arg], arg - cur_arg - 1, err);
|
||||||
}
|
|
||||||
|
|
||||||
if (cfgerr) {
|
if (cfgerr) {
|
||||||
memprintf(err, "error processing line %d in file '%s' : %s", linenum, file, *err);
|
memprintf(err, "error processing line %d in file '%s' : %s", linenum, file, *err);
|
||||||
|
Loading…
Reference in New Issue
Block a user