MINOR: ssl: Keep the actual key length in the certificate_ocsp structure
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 10 Jun 2021 11:51:12 +0000 (13:51 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 10 Jun 2021 14:44:11 +0000 (16:44 +0200)
commit5aa1dce5ee401f695433b2b523a172ee551d969a
treed496ff665d7fddbafdf9974e505e58962b31e8db
parent12554d00f6ed16324a0dfbafb5230f8f0136e4ba
MINOR: ssl: Keep the actual key length in the certificate_ocsp structure

The OCSP tree entry key is a serialized version of the OCSP_CERTID of
the entry which is stored in a buffer that can be at most 128 bytes.
Depending on the length of the serial number, the actual non-zero part
of the key can be smaller than 128 bytes and this new structure member
allows to know how many of the bytes are filled. It will be useful when
dumping the key (in a "show ssl cert <cert>" output for instance).
src/ssl_sock.c