MINOR: ssl: Use OCSP_CERTID instead of ckch_store in ckch_store_build_certid
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 7 Feb 2024 15:38:41 +0000 (16:38 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 14 Feb 2024 15:26:57 +0000 (16:26 +0100)
commitd98153ffa0e4e2617428b80e982839528e78dfb8
treeb541a193e073bc43de277f13ead3464cf4dc848f
parentf41ddcb765d962dec978ef454d700456ecb69491
MINOR: ssl: Use OCSP_CERTID instead of ckch_store in ckch_store_build_certid

The only useful information taken out of the ckch_store in order to copy
an OCSP certid into a buffer (later used as a key for entries in the
OCSP response tree) is the ocsp_certid field of the ckch_data structure.
We then don't need to pass a pointer to the full ckch_store to
ckch_store_build_certid or even any information related to the store
itself.
The ckch_store_build_certid is then converted into a helper function
that simply takes an OCSP_CERTID and converts it into a char buffer.

(cherry picked from commit 28e78a0a74e0b3007e0e01753bd6703c219f7ade)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/ssl_ocsp.h
src/ssl_ckch.c
src/ssl_ocsp.c