]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 7 Feb 2024 16:09:39 +0000 (17:09 +0100)
commit28e78a0a74e0b3007e0e01753bd6703c219f7ade
treedbb9036e6533dd26a72f5c534d7cf1cae9aee448
parent1fda0a52029ba5fe5ea4e31da7a71ba94b217170
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.
include/haproxy/ssl_ocsp.h
src/ssl_ckch.c
src/ssl_ocsp.c