When calling ckchs_dup (during a "set ssl cert" CLI command), if the
modified store had OCSP auto update enabled then the new certificate
would not keep the previous update mode and would not appear in the auto
update list.
This patch can be backported to 2.8.
(cherry picked from commit
1fda0a52029ba5fe5ea4e31da7a71ba94b217170)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
dst->ocsp_cid = OCSP_CERTID_dup(src->ocsp_cid);
+ dst->ocsp_update_mode = src->ocsp_update_mode;
+
return dst;
error: